X-Git-Url: http://git.mutantstargoat.com/user/nuclear/?p=ld42_outofspace;a=blobdiff_plain;f=src%2Fmain.cc;h=fca4fd96dff57b920f1eb07e8972c486b61e2180;hp=4c707d6f647293a8f112ba16834878c855e6d969;hb=d0367d9119f81afd77045481b9e53d5a17b89a73;hpb=8ac9e0e139b1f523c333ed2c33b81291f54def09 diff --git a/src/main.cc b/src/main.cc index 4c707d6..fca4fd9 100644 --- a/src/main.cc +++ b/src/main.cc @@ -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);