I’m having a problem with OpenGL,
I’m trying to get it to render a scene for me, it worked fine when I didn’t try to optimise it with display lists. I’m using glNewList with GL_COMPILE_AND_EXCECUTE, because I rely on getting glIsEnabled for GL_TEXTURE_2D. Please don’t tell me to cache the state, because I am popping and pushing stacks of states, and I don’t want to have to pop and push stacks of states of the enable state for myself as well as OpenGL doing it.
So, I am using compile and execute in a display list. I enable texture2d, it enables fine (I checked explicitly with glIsEnabled), it stays fine all the way up to the command glBegin (I checked explicitly). then, after glBegin, the texture state is OFF!!!
What is going wrong here? I don’t understand this.