From 4b0862a70a700cdd8a33e8163dbc9d7fe597e3ce Mon Sep 17 00:00:00 2001 From: divverent Date: Fri, 2 Sep 2011 20:24:31 +0000 Subject: [PATCH] also set TEXF_ALPHA on GL_ONE GL_ONE (don't ask) git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@11320 d7cf8633-e32d-0410-b094-e92efae38249 --- model_shared.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/model_shared.c b/model_shared.c index 40e7b278..dc6e798e 100644 --- a/model_shared.c +++ b/model_shared.c @@ -1987,6 +1987,11 @@ void Mod_LoadQ3Shaders(void) layer->texflags |= TEXF_ALPHA; break; } + + // nasty hack because DP treats this the same as GL_SRC_ALPHA GL_ONE + if(layer->blendfunc[0] == GL_ONE && layer->blendfunc[1] == GL_ONE) + layer->texflags |= TEXF_ALPHA; + if (!(shader.surfaceparms & Q3SURFACEPARM_NOMIPMAPS)) layer->texflags |= TEXF_MIPMAP; if (!(shader.textureflags & Q3TEXTUREFLAG_NOPICMIP)) -- 2.39.2