Hello,
In according to that line we create the texture
|
gl.GenTextures(1, &texture) |
In according to example in documentation on page https://docs.gl/gl2/glGenTextures
glGenTextures(1, &texture_id);
glBindTexture(GL_TEXTURE_2D, texture_id);
....
glBindTexture(GL_TEXTURE_2D, 0);
I think the last line of function shall be
gl.BindTexture(GL_TEXTURE_2D, 0)
Thanks)
Hello,
In according to that line we create the texture
example/gl21-cube/cube.go
Line 82 in d71b0d9
In according to example in documentation on page https://docs.gl/gl2/glGenTextures
I think the last line of function shall be
gl.BindTexture(GL_TEXTURE_2D, 0)Thanks)