Fix for FTE_CONFIG=wastes.

git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@5885 fc73d0e0-1445-4013-8a0c-d673dee63da5
This commit is contained in:
Spoike 2021-06-02 15:29:56 +00:00
parent 3a97a75ab2
commit 868f13cb29

View file

@ -7059,7 +7059,11 @@ void Shader_Default2D(parsestate_t *ps, const char *shortname, const void *genar
shader_t *s = ps->s;
if (Shader_ParseShader(ps, "default2d"))
return;
if (sh_config.progs_supported && qrenderer != QR_DIRECT3D9 && !dpcompat_nopremulpics.ival)
if (sh_config.progs_supported && qrenderer != QR_DIRECT3D9
#ifdef HAVE_LEGACY
&& !dpcompat_nopremulpics.ival
#endif
)
{
//hexen2 needs premultiplied alpha to avoid looking ugly
//but that results in problems where things are drawn with alpha not 0, so scale vertex colour by alpha in the fragment program