Disable/enable lighting in the "one.c" demo (John Fay)

git-svn-id: https://svn.code.sf.net/p/freeglut/code/trunk@388 7f0cb862-5218-0410-a997-914c9d46530a
This commit is contained in:
puggles 2003-12-11 18:49:38 +00:00
parent 9438a576ba
commit de8936fe30

View File

@ -35,6 +35,7 @@ void PrintText( int nX, int nY, char* pszText )
/*
* Prepare the OpenGL state
*/
glDisable( GL_LIGHTING );
glDisable( GL_DEPTH_TEST );
glMatrixMode( GL_PROJECTION );
glPushMatrix();
@ -86,6 +87,7 @@ void PrintText( int nX, int nY, char* pszText )
*/
glColor4f( 1.0f, 1.0f, 1.0f, 1.0f );
glEnable( GL_DEPTH_TEST );
glEnable( GL_LIGHTING );
}
/*