]> de.git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - gl_rsurf.c
optimizations to rendering
[xonotic/darkplaces.git] / gl_rsurf.c
index eae22edb9f2e8511b41cd77cc93a745a0259bdec..c4ececd69f391c30983336b6a524683b1e766b27 100644 (file)
@@ -1919,13 +1919,7 @@ void R_SetupForBModelRendering(entity_render_t *ent)
        }
 }
 
        }
 }
 
-void R_SetupForWorldRendering(entity_render_t *ent)
-{
-       // there is only one instance of the world, but it can be rendered in
-       // multiple stages
-}
-
-static void R_SurfMarkLights (entity_render_t *ent)
+void R_SurfMarkLights (entity_render_t *ent)
 {
        int                     i;
        msurface_t      *surf;
 {
        int                     i;
        msurface_t      *surf;
@@ -1959,12 +1953,6 @@ static void R_SurfMarkLights (entity_render_t *ent)
        }
 }
 
        }
 }
 
-void R_MarkWorldLights(entity_render_t *ent)
-{
-       R_SetupForWorldRendering(ent);
-       R_SurfMarkLights(ent);
-}
-
 /*
 =============
 R_DrawWorld
 /*
 =============
 R_DrawWorld
@@ -1972,8 +1960,8 @@ R_DrawWorld
 */
 void R_DrawWorld (entity_render_t *ent)
 {
 */
 void R_DrawWorld (entity_render_t *ent)
 {
-       R_SetupForWorldRendering(ent);
-
+       // there is only one instance of the world, but it can be rendered in
+       // multiple stages
        if (r_viewleaf->contents == CONTENTS_SOLID || r_novis.integer || r_viewleaf->compressed_vis == NULL)
                R_SolidWorldNode (ent);
        else
        if (r_viewleaf->contents == CONTENTS_SOLID || r_novis.integer || r_viewleaf->compressed_vis == NULL)
                R_SolidWorldNode (ent);
        else