Hi!
I am having some troubles with the glEnableClientState & glDisableClientState. I just want to know if I can Enable and Disable the client-states as I want, if I have to reset the array-pointers and above all if I can call the gl*ClientState(…) wherever and whenever I like. I know that it seems a beginner/silly question but I used that function without any problem and know I have found a condition where these instruction seems to cause some troubles.
I’ll explain better:
–FIRST WAY--------
Pass_1:
set_array_pointers();
glEnableClientState(COLOR,TEXTURE,VERTEX,NORMAL)
draw_opaque_surfaces();
Pass 2:
glDisableClientState(GL_NORMAL_ARRAY) //I just dont need normals here!!!
drawTransparentSurfaces();
this way simply doesnt work!!
and if I delete the line glDisableClientState(GL_NORMAL_ARRAY) in “Pass-2” it works fine and I dont know why…any suggestions???
Thanx in advacne!