summaryrefslogtreecommitdiffstats
path: root/progs/tests
diff options
context:
space:
mode:
authorBrian Paul <[email protected]>2009-10-25 18:10:45 -0600
committerBrian Paul <[email protected]>2009-10-25 18:10:45 -0600
commitd8ded352ec45696e88efe6d52a375bbf541354e9 (patch)
tree3ea17b4698aec82857dab4470a5c1e73d41a0ab6 /progs/tests
parent11caea687e3f10ae12d33e44edf84635f73047dd (diff)
progs/tests: disable blending while drawing text
Diffstat (limited to 'progs/tests')
-rw-r--r--progs/tests/texcmp.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/progs/tests/texcmp.c b/progs/tests/texcmp.c
index 743b1b09b44..ebb537272f6 100644
--- a/progs/tests/texcmp.c
+++ b/progs/tests/texcmp.c
@@ -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);