some blank lines
This commit is contained in:
parent
53222d1cef
commit
ecce5fdcc9
|
@ -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
|
||||
}
|
||||
|
||||
|
|
|
@ -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
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue