Puzzling question about glBindTexture

Hi buddy,

With OGL_ES spec:
(You can reference following website
http://www.khronos.org/opengles/documentation/html/glBindTexture.html
)

glBindTexture(GLenum target, GLuint texture)

texture = 0 is reserved to represent the default texture for each texture target.

What does this means? default texture??

For OGL, we use texture = 0 to deactivate
texture. But for OGL_ES, how do we do…

Thanks so much!

The semantic for glBindTexture(target, 0) is the same in OpenGL: it will bind the default texture object (and DOES NOT deactivate texture mapping). :slight_smile:

Marco.

Just to be clear…

glBindTexture(target, 0)

will bind the default texture, but if you have not specified any data for the default texture (by calling glTexImage2D), then the texture will be incomplete and will therefore switch off texturing on that texture unit.

This topic was automatically closed 183 days after the last reply. New replies are no longer allowed.