PDA

View Full Version : glDisable(GL_TEXTURE2D) get GL_INVALID_ENUM



yjh1982
02-05-2012, 05:09 AM
glDisable(GL_TEXTURE) or glDisable(GL_TEXTURE2D) not be supported
by core profile?
My APP generate GL_INVALID_ENUM .

in opengl4-quick-reference-card.pdf
Texture Applicaton [3.8.18] [3.9.20]
Enable/Disable(param)
param: TEXTURE_1D, TEXTURE_2D, TEXTURE_3D,
TEXTURE_CUBE_MAP is core profile support.


but in opengl3.3 reference(http://www.opengl.org/sdk/docs/man3/)
glEnable/glDisable only support GL_TEXTURE_CUBE_MAP_SEAMLESS about texture.

V-man
02-05-2012, 05:18 AM
Yes, that is correct
glDisable(GL_TEXTURE_2D)is part of fixed pipeline.
If you need it and also glTexEnv too I guess, make a compatibility profile.

yjh1982
02-05-2012, 05:24 AM
I not need glDisable(GL_TEXTURE_2D) or glTexEnv.
quick-refenrence-card and red book 7th Mislead me. I always thought that donot disable will bring overhead