From e471c785d8b18dae697a513742aa8b1f7641911b Mon Sep 17 00:00:00 2001 From: Joseph Carter Date: Sun, 21 May 2000 08:18:00 +0000 Subject: [PATCH] Need GL_MODULATE for Draw_AlphaPic under Mesa... --- source/gl_draw.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/source/gl_draw.c b/source/gl_draw.c index 4dffe0a..c02f094 100644 --- a/source/gl_draw.c +++ b/source/gl_draw.c @@ -710,6 +710,7 @@ void Draw_AlphaPic (int x, int y, qpic_t *pic, float alpha) glEnable (GL_BLEND); // glBlendFunc(GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA); glCullFace(GL_FRONT); + glTexEnvf(GL_TEXTURE_ENV, GL_TEXTURE_ENV_MODE, GL_MODULATE); glColor4f (1,1,1,alpha); GL_Bind (gl->texnum); glBegin (GL_QUADS); @@ -723,6 +724,7 @@ void Draw_AlphaPic (int x, int y, qpic_t *pic, float alpha) glVertex2f (x, y+pic->height); glEnd (); glColor4f (1,1,1,1); + glTexEnvf(GL_TEXTURE_ENV, GL_TEXTURE_ENV_MODE, GL_REPLACE); glEnable(GL_ALPHA_TEST); glDisable (GL_BLEND); }