From dbf8fee5d2c9a9c25976fc80f9d68e9ea58c36a2 Mon Sep 17 00:00:00 2001 From: TimeServ Date: Thu, 20 Oct 2005 18:16:32 +0000 Subject: [PATCH] gl_blend2d fix git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@1517 fc73d0e0-1445-4013-8a0c-d673dee63da5 --- engine/gl/gl_draw.c | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/engine/gl/gl_draw.c b/engine/gl/gl_draw.c index 125633801..6401b4d6f 100644 --- a/engine/gl/gl_draw.c +++ b/engine/gl/gl_draw.c @@ -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); }