From: divverent Date: Fri, 2 Sep 2011 20:24:31 +0000 (+0000) Subject: also set TEXF_ALPHA on GL_ONE GL_ONE (don't ask) X-Git-Tag: xonotic-v0.6.0~163^2~232 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=4b0862a70a700cdd8a33e8163dbc9d7fe597e3ce;p=xonotic%2Fdarkplaces.git 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 --- 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))