Need GL_MODULATE for Draw_AlphaPic under Mesa...

This commit is contained in:
Joseph Carter 2000-05-21 08:18:00 +00:00
parent 3bcb4ed046
commit e471c785d8

View file

@ -710,6 +710,7 @@ void Draw_AlphaPic (int x, int y, qpic_t *pic, float alpha)
glEnable (GL_BLEND); glEnable (GL_BLEND);
// glBlendFunc(GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA); // glBlendFunc(GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA);
glCullFace(GL_FRONT); glCullFace(GL_FRONT);
glTexEnvf(GL_TEXTURE_ENV, GL_TEXTURE_ENV_MODE, GL_MODULATE);
glColor4f (1,1,1,alpha); glColor4f (1,1,1,alpha);
GL_Bind (gl->texnum); GL_Bind (gl->texnum);
glBegin (GL_QUADS); glBegin (GL_QUADS);
@ -723,6 +724,7 @@ void Draw_AlphaPic (int x, int y, qpic_t *pic, float alpha)
glVertex2f (x, y+pic->height); glVertex2f (x, y+pic->height);
glEnd (); glEnd ();
glColor4f (1,1,1,1); glColor4f (1,1,1,1);
glTexEnvf(GL_TEXTURE_ENV, GL_TEXTURE_ENV_MODE, GL_REPLACE);
glEnable(GL_ALPHA_TEST); glEnable(GL_ALPHA_TEST);
glDisable (GL_BLEND); glDisable (GL_BLEND);
} }