]> git.rm.cloudns.org Git - xonotic/darkplaces.git/commitdiff
disable skymasking in q3bsp because it causes issues with q3map2 sky tricks (and...
authorhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Sun, 26 Mar 2006 03:28:37 +0000 (03:28 +0000)
committerhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Sun, 26 Mar 2006 03:28:37 +0000 (03:28 +0000)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@6191 d7cf8633-e32d-0410-b094-e92efae38249

gl_rmain.c

index c4f2b1fc97e86dafb6c43afd3a719bdfd46a02d1..214599df0ee4fea0fa505b2c91265a57a275271c 100644 (file)
@@ -2811,7 +2811,10 @@ static void R_DrawTextureSurfaceList(const entity_render_t *ent, texture_t *text
                        }
                        GL_DepthMask(true);
                        // LordHavoc: HalfLife maps have freaky skypolys...
-                       //if (!ent->model->brush.ishlbsp)
+                       // LordHavoc: Quake3 never did sky masking (unlike software Quake
+                       // and Quake2), so disable the sky masking in Quake3 maps as it
+                       // causes problems with q3map2 sky tricks
+                       if (!ent->model->brush.ishlbsp && ent->model->type != mod_brushq3)
                        {
                                GL_Color(fogcolor[0], fogcolor[1], fogcolor[2], 1);
                                memset(&m, 0, sizeof(m));