]> git.xonotic.org Git - xonotic/darkplaces.git/commitdiff
disable divVerent's texflags hack for now because it is breaking
authorhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Mon, 5 Sep 2011 23:49:16 +0000 (23:49 +0000)
committerhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Mon, 5 Sep 2011 23:49:16 +0000 (23:49 +0000)
steelstorm's light interactions with transparent materials, until this
issue can be investigated properly this code will be disabled

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@11324 d7cf8633-e32d-0410-b094-e92efae38249

model_shared.c

index dc6e798e366d542c970434d0f5664c8e564d0532..5018ab9f150ceede63d2d309e95a56f5bd9cdbb8 100644 (file)
@@ -1970,6 +1970,10 @@ void Mod_LoadQ3Shaders(void)
                                                        shader.textureblendalpha = true;
                                                }
                                        }
+#if 1
+                                       // LordHavoc: use this code until divVerent is able to fix the other code
+                                       layer->texflags = TEXF_ALPHA;
+#else
                                        layer->texflags = 0;
                                        if (layer->alphatest)
                                                layer->texflags |= TEXF_ALPHA;
@@ -1991,6 +1995,7 @@ void Mod_LoadQ3Shaders(void)
                                        // 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;
+#endif
 
                                        if (!(shader.surfaceparms & Q3SURFACEPARM_NOMIPMAPS))
                                                layer->texflags |= TEXF_MIPMAP;