progs/tests: disable blending while drawing text
authorBrian Paul <brianp@vmware.com>
Mon, 26 Oct 2009 00:10:45 +0000 (18:10 -0600)
committerBrian Paul <brianp@vmware.com>
Mon, 26 Oct 2009 00:10:45 +0000 (18:10 -0600)
progs/tests/texcmp.c

index 743b1b09b44c1b90b7eb9039d06eae28f08e4491..ebb537272f642aac0a09720961ac2fb7f8ca0c52 100644 (file)
@@ -106,6 +106,8 @@ static void Display( void )
    glRotatef(Rot, 0, 0, 1);
 
    glEnable(GL_TEXTURE_2D);
+   glEnable(GL_BLEND);
+
    glBegin(GL_POLYGON);
    glTexCoord2f(0, 1);  glVertex2f(-1, -0.5);
    glTexCoord2f(1, 1);  glVertex2f( 1, -0.5);
@@ -118,6 +120,7 @@ static void Display( void )
    glDisable(GL_TEXTURE_2D);
 
    /* info */
+   glDisable(GL_BLEND);
    glColor4f(1, 1, 1, 1);
 
    glRasterPos3f(-1.2, -0.7, 0);