mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-29 21:00:16 +01:00
progs/tests: disable blending while drawing text
This commit is contained in:
parent
11caea687e
commit
d8ded352ec
1 changed files with 3 additions and 0 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue