question about gui library

hello , i been trying to use your gui library for developing guis in some 3d apps ive been working on , the problem is in my 3d app im using this commands:
glEnable (GL_DEPTH_TEST);
glShadeModel (GL_SMOOTH);
glLightfv (GL_LIGHT0, GL_POSITION, lightOnePosition);
glLightfv (GL_LIGHT0, GL_DIFFUSE, lightOneColor);
glEnable (GL_LIGHT0);
glLightfv (GL_LIGHT1, GL_POSITION, lightTwoPosition);
glLightfv (GL_LIGHT1, GL_DIFFUSE, lightTwoColor);
glEnable (GL_LIGHT1);
glEnable (GL_LIGHTING);

and when i add those to the app, the gui elements appears black, so the text arent noticiable, also when i use the gui library the 3d elements appears with other kind of lighting , it seems that the gui library affects the original lighting.

i uploaded these pics of a simple example:

this is the way the 3d elements should look :

and when i add the 3d gui library , the gui elements appears black and also the spheres lighting change :

Any idea why is this and how to solve this?

thanks in advace


Try to, prior to drawing your 2D elements, issue a glDisable (GL_DEPTH_TEST); command.