]> de.git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - gl_rsurf.c
chthon lightning no longer uses beam polygons
[xonotic/darkplaces.git] / gl_rsurf.c
index cf63d964234f1d27e9b0ed9054db91c050a8221b..59313255c4591976b0f650949918d1a5de64c4fe 100644 (file)
@@ -1709,8 +1709,6 @@ static void R_PortalWorldNode(entity_render_t *ent, mleaf_t *viewleaf)
                        }
                }
        }
-       if (r_drawportals.integer)
-               R_DrawPortals(ent);
 }
 
 void R_PVSUpdate (entity_render_t *ent, mleaf_t *viewleaf)
@@ -1785,6 +1783,8 @@ void R_DrawWorld (entity_render_t *ent)
        R_PrepareSurfaces(ent);
        R_DrawSurfaces(ent, SHADERSTAGE_SKY, ent->model->pvstexturechains);
        R_DrawSurfaces(ent, SHADERSTAGE_NORMAL, ent->model->pvstexturechains);
+       if (r_drawportals.integer)
+               R_DrawPortals(ent);
 }
 
 void R_Model_Brush_DrawSky (entity_render_t *ent)