Index: game.py
===================================================================
--- game.py	(revision e79c83311eeb205e74f8040166dba5c9dcbc891c)
+++ game.py	(revision 1af0f6dbd7484b6f41c521670db104eff5e0c493)
@@ -13,9 +13,16 @@
    #glEnable (GL_BLEND); glBlendFunc (GL_ONE, GL_ONE);
 
+   # I should really figure out which attributes in the 2D rendering
+   # break the 3d rendering and reset those back instead of resetting
+   # all attributes
    if state:
       renderOverlay(overlay, font)
+      glPushAttrib(GL_ALL_ATTRIB_BITS)
       projectOverlay(surface, overlay)
+      glPopAttrib(GL_ALL_ATTRIB_BITS)
    else:
+      glPushAttrib(GL_ALL_ATTRIB_BITS)
       render3d(surface)
+      glPopAttrib(GL_ALL_ATTRIB_BITS)
 
 
@@ -33,4 +40,7 @@
    
    glPushMatrix()
+
+   glClear(GL_COLOR_BUFFER_BIT|GL_DEPTH_BUFFER_BIT)
+
    glTranslatef(0.0,0.0,-zNear)
 
