example
example copied to clipboard
gl.GenTextures
Hello, In according to that line we create the texture https://github.com/go-gl/example/blob/d71b0d9f823d97c3b5ac2a79fdcdb56ca1677eba/gl21-cube/cube.go#L82
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)