mirror of
https://github.com/nzp-team/fteqw.git
synced 2024-11-23 04:11:53 +00:00
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:
parent
41bb3d1141
commit
dbf8fee5d2
1 changed files with 10 additions and 2 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue