mesa: add missing glPush/PopMatrix() calls
authorBrian <brian.paul@tungstengraphics.com>
Fri, 4 Apr 2008 15:38:22 +0000 (09:38 -0600)
committerBrian <brian.paul@tungstengraphics.com>
Sat, 5 Apr 2008 01:28:33 +0000 (19:28 -0600)
progs/trivial/dlist-edgeflag-dangling.c

index 31300ef..47d29bd 100644 (file)
@@ -88,6 +88,7 @@ static void Draw(void)
 {
    glClear(GL_COLOR_BUFFER_BIT); 
 
+   glPushMatrix();
    glColor3f(0,.9,0); 
    glEdgeFlag(0);
    glCallList(list);
@@ -95,6 +96,7 @@ static void Draw(void)
    glRotatef(45,0,0,1);
    glColor3f(1,0,1); 
    glCallList(list);
+   glPopMatrix();
 
    glFlush();