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 31300efd842bf7536eb21f37eae40bdbbdc93657..47d29bdade10aa2b8081106d885c2b7edb99c949 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();