mirror of
https://git.code.sf.net/p/quake/newtree
synced 2024-11-26 05:51:36 +00:00
Need GL_MODULATE for Draw_AlphaPic under Mesa...
This commit is contained in:
parent
3bcb4ed046
commit
e471c785d8
1 changed files with 2 additions and 0 deletions
|
@ -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);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue