example icon indicating copy to clipboard operation
example copied to clipboard

gl.GenTextures

Open Konstantin8105 opened this issue 3 years ago • 0 comments

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)

Konstantin8105 avatar Nov 18 '22 21:11 Konstantin8105