]> git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - gl_rmain.c
disable skymasking in q3bsp because it causes issues with q3map2 sky tricks (and...
[xonotic/darkplaces.git] / 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));