placing white holes, and changed to n-body gravitational pull instead of
[ld42_outofspace] / src / main.cc
index 4c707d6..fca4fd9 100644 (file)
@@ -99,6 +99,7 @@ void draw_text(float x, float y, float r, float g, float b, const char *fmt, ...
        glLoadIdentity();
        glOrtho(0, win_width, 0, win_height, -1, 1);
 
+       glPushAttrib(GL_ENABLE_BIT);
        glDisable(GL_LIGHTING);
 
        glRasterPos2f(1, 1);
@@ -107,7 +108,7 @@ void draw_text(float x, float y, float r, float g, float b, const char *fmt, ...
                glutBitmapCharacter(GLUT_BITMAP_HELVETICA_18, *text++);
        }
 
-       glEnable(GL_LIGHTING);
+       glPopAttrib();
 
        glPopMatrix();
        glMatrixMode(GL_MODELVIEW);