1
0
Fork 0
forked from fte/fteqw

Sorry, non-gl client builds will build again. Should do this properly though.

git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@1036 fc73d0e0-1445-4013-8a0c-d673dee63da5
This commit is contained in:
Spoike 2005-05-19 17:50:18 +00:00
parent 077fb0d98a
commit ca93cb6b8f

View file

@ -395,6 +395,7 @@ void PF_CL_drawpic (progfuncs_t *prinst, struct globalvars_s *pr_globals)
float alpha = G_FLOAT(OFS_PARM4);
float flag = G_FLOAT(OFS_PARM5);
#ifdef RGLQUAKE
if (qrenderer == QR_OPENGL)
{
if (flag == 1)
@ -406,14 +407,17 @@ void PF_CL_drawpic (progfuncs_t *prinst, struct globalvars_s *pr_globals)
else
qglBlendFunc(GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA);
}
#endif
if (Draw_ImageColours)
Draw_ImageColours(rgb[0], rgb[1], rgb[2], alpha);
if (Draw_Image)
Draw_Image(pos[0], pos[1], size[0], size[1], 0, 0, 1, 1, p);
#ifdef RGLQUAKE
if (qrenderer == QR_OPENGL)
qglBlendFunc(GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA);
#endif
G_FLOAT(OFS_RETURN) = 1;
}