PDA

View Full Version : glDisable(GL_TEXTURE_BUFFER)?



EthanIowa
01-18-2013, 09:07 AM
Hi,

In OpenGL 3.3. texturing can be disabled using glDisable(GL_TEXTURE_[1D,2D,3D,CUBE_MAP]), but Calling glDisable(GL_TEXTURE_BUFFER) is not valid.

How are texture buffers conceptually different than other textures? Why can they not be disabled?

Thanks.

malexander
01-18-2013, 09:12 AM
Enabling and disabling texturing is only used in the fixed function pipeline; it is completely ignored when using shaders. Since Texture buffers are only available in shaders, there was no need to make a enable/disable state for it. That's why you get an error.

EthanIowa
01-18-2013, 09:29 AM
Ok.Thanks for clarifying.