some blank lines

This commit is contained in:
faiface 2016-11-24 14:37:11 +01:00
parent 53222d1cef
commit ecce5fdcc9
2 changed files with 4 additions and 0 deletions

View File

@ -18,6 +18,7 @@ func NewTexture(parent BeginEnder, width, height int, pixels []uint8) (*Texture,
defer parent.End()
texture := &Texture{parent: parent}
err := DoGLErr(func() {
gl.GenTextures(1, &texture.tex)
gl.BindTexture(gl.TEXTURE_2D, texture.tex)
@ -40,6 +41,7 @@ func NewTexture(parent BeginEnder, width, height int, pixels []uint8) (*Texture,
if err != nil {
return nil, errors.Wrap(err, "failed to create a texture")
}
return texture, nil
}

View File

@ -108,6 +108,7 @@ func NewVertexArray(parent BeginEnder, format VertexFormat, mode VertexDrawMode,
format: format,
mode: mode,
}
err := DoGLErr(func() {
gl.GenVertexArrays(1, &va.vao)
gl.BindVertexArray(va.vao)
@ -139,6 +140,7 @@ func NewVertexArray(parent BeginEnder, format VertexFormat, mode VertexDrawMode,
if err != nil {
return nil, errors.Wrap(err, "failed to create a vertex array")
}
return va, nil
}