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()
|
defer parent.End()
|
||||||
|
|
||||||
texture := &Texture{parent: parent}
|
texture := &Texture{parent: parent}
|
||||||
|
|
||||||
err := DoGLErr(func() {
|
err := DoGLErr(func() {
|
||||||
gl.GenTextures(1, &texture.tex)
|
gl.GenTextures(1, &texture.tex)
|
||||||
gl.BindTexture(gl.TEXTURE_2D, 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 {
|
if err != nil {
|
||||||
return nil, errors.Wrap(err, "failed to create a texture")
|
return nil, errors.Wrap(err, "failed to create a texture")
|
||||||
}
|
}
|
||||||
|
|
||||||
return texture, nil
|
return texture, nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -108,6 +108,7 @@ func NewVertexArray(parent BeginEnder, format VertexFormat, mode VertexDrawMode,
|
||||||
format: format,
|
format: format,
|
||||||
mode: mode,
|
mode: mode,
|
||||||
}
|
}
|
||||||
|
|
||||||
err := DoGLErr(func() {
|
err := DoGLErr(func() {
|
||||||
gl.GenVertexArrays(1, &va.vao)
|
gl.GenVertexArrays(1, &va.vao)
|
||||||
gl.BindVertexArray(va.vao)
|
gl.BindVertexArray(va.vao)
|
||||||
|
@ -139,6 +140,7 @@ func NewVertexArray(parent BeginEnder, format VertexFormat, mode VertexDrawMode,
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return nil, errors.Wrap(err, "failed to create a vertex array")
|
return nil, errors.Wrap(err, "failed to create a vertex array")
|
||||||
}
|
}
|
||||||
|
|
||||||
return va, nil
|
return va, nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue