X-Git-Url: http://git.hungrycats.org/cgi-bin/gitweb.cgi?p=xscreensaver;a=blobdiff_plain;f=hacks%2Fglx%2Ffps.c;h=9d50cad5213e8d25785e2abab5886db5ffa6064c;hp=237ef1fef6daf9bab1a6d5d79e6e9af977727e7d;hb=2d04c4f22466851aedb6ed0f2919d148f726b889;hpb=bc7b7a8eb122206d239ec0e693676bcce31be1aa diff --git a/hacks/glx/fps.c b/hacks/glx/fps.c index 237ef1fe..9d50cad5 100644 --- a/hacks/glx/fps.c +++ b/hacks/glx/fps.c @@ -91,22 +91,23 @@ fps_print_string (ModeInfo *mi, GLfloat x, GLfloat y, const char *string) here, which would kind of defeat the purpose of centralizing this code in one file. */ - glPushAttrib(GL_TRANSFORM_BIT | /* for matrix contents */ - GL_ENABLE_BIT | /* for various glDisable calls */ - GL_CURRENT_BIT | /* for glColor3f() */ - GL_LIST_BIT); /* for glListBase() */ + glPushAttrib (GL_TRANSFORM_BIT | /* for matrix contents */ + GL_ENABLE_BIT | /* for various glDisable calls */ + GL_CURRENT_BIT | /* for glColor3f() */ + GL_LIST_BIT); /* for glListBase() */ { # ifdef DEBUG check_gl_error ("glPushAttrib"); # endif /* disable lighting and texturing when drawing bitmaps! - (glPopAttrib() restores these, I believe.) + (glPopAttrib() restores these.) */ - glDisable(GL_TEXTURE_2D); - glDisable(GL_LIGHTING); - glDisable(GL_BLEND); - glDisable(GL_DEPTH_TEST); + glDisable (GL_TEXTURE_2D); + glDisable (GL_LIGHTING); + glDisable (GL_BLEND); + glDisable (GL_DEPTH_TEST); + glDisable (GL_CULL_FACE); /* glPopAttrib() does not restore matrix changes, so we must push/pop the matrix stacks to be non-intrusive there.