]> git.rm.cloudns.org Git - xonotic/darkplaces.git/commitdiff
also set TEXF_ALPHA on GL_ONE GL_ONE (don't ask)
authordivverent <divverent@d7cf8633-e32d-0410-b094-e92efae38249>
Fri, 2 Sep 2011 20:24:31 +0000 (20:24 +0000)
committerdivverent <divverent@d7cf8633-e32d-0410-b094-e92efae38249>
Fri, 2 Sep 2011 20:24:31 +0000 (20:24 +0000)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@11320 d7cf8633-e32d-0410-b094-e92efae38249

model_shared.c

index 40e7b278512194b6dd8d3957ee061e9499e29d2e..dc6e798e366d542c970434d0f5664c8e564d0532 100644 (file)
@@ -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))