gl_blend2d fix

git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@1517 fc73d0e0-1445-4013-8a0c-d673dee63da5
This commit is contained in:
TimeServ 2005-10-20 18:16:32 +00:00
parent 41bb3d1141
commit dbf8fee5d2

View file

@ -1500,8 +1500,16 @@ void GLDraw_Pic (int x, int y, mpic_t *pic)
draw_mesh_st[3][0] = gl->sl;
draw_mesh_st[3][1] = gl->th;
qglDisable(GL_ALPHA_TEST);
qglEnable(GL_BLEND);
if (gl_blend2d.value)
{
qglDisable(GL_ALPHA_TEST);
qglEnable(GL_BLEND);
}
else
{
qglEnable(GL_ALPHA_TEST);
qglDisable(GL_BLEND);
}
GL_DrawMesh(&draw_mesh, gl->texnum);
}