diff --git a/libs/video/renderer/gl/gl_rsurf.c b/libs/video/renderer/gl/gl_rsurf.c index 1bcf6295a..9fd11488b 100644 --- a/libs/video/renderer/gl/gl_rsurf.c +++ b/libs/video/renderer/gl/gl_rsurf.c @@ -120,15 +120,6 @@ R_RecursiveLightUpdate (mnode_t *node) c--, surf++) surf->cached_dlight = true; } -// LordHavoc: function to force all lightmaps to be updated -void -R_ForceLightUpdate (void) -{ - if (r_worldentity.model && r_worldentity.model->nodes - && r_worldentity.model->nodes->contents >= 0) - R_RecursiveLightUpdate (r_worldentity.model->nodes); -} - /* R_AddDynamicLights diff --git a/libs/video/renderer/gl/gl_screen.c b/libs/video/renderer/gl/gl_screen.c index d7a3bb131..efbe856d3 100644 --- a/libs/video/renderer/gl/gl_screen.c +++ b/libs/video/renderer/gl/gl_screen.c @@ -780,9 +780,7 @@ SCR_TileClear (void) } } -extern void R_ForceLightUpdate (void); - -int oldviewsize = 0; +int oldviewsize = 0; /* SCR_UpdateScreen diff --git a/libs/video/renderer/sw/sw_rsurf.c b/libs/video/renderer/sw/sw_rsurf.c index b5193d165..7e0001983 100644 --- a/libs/video/renderer/sw/sw_rsurf.c +++ b/libs/video/renderer/sw/sw_rsurf.c @@ -123,7 +123,6 @@ R_AddDynamicLights (void) } } - /* R_BuildLightMap @@ -179,7 +178,6 @@ R_BuildLightMap (void) } } - /* R_TextureAnimation @@ -213,7 +211,6 @@ R_TextureAnimation (texture_t *base) return base; } - void R_DrawSurface (void) { @@ -297,7 +294,7 @@ R_DrawSurface (void) } #ifdef PIC -#undef USE_INTEL_ASM //XXX asm pic hack +# undef USE_INTEL_ASM //XXX asm pic hack #endif #ifndef USE_INTEL_ASM @@ -344,7 +341,6 @@ R_DrawSurfaceBlock8_mip0 (void) } } - void R_DrawSurfaceBlock8_mip1 (void) { @@ -387,7 +383,6 @@ R_DrawSurfaceBlock8_mip1 (void) } } - void R_DrawSurfaceBlock8_mip2 (void) { @@ -430,7 +425,6 @@ R_DrawSurfaceBlock8_mip2 (void) } } - void R_DrawSurfaceBlock8_mip3 (void) { @@ -473,7 +467,6 @@ R_DrawSurfaceBlock8_mip3 (void) } } - /* R_DrawSurfaceBlock16 @@ -520,7 +513,6 @@ R_DrawSurfaceBlock16 (void) #endif - void R_GenTurbTile (byte *pbasetex, void *pdest) { @@ -540,7 +532,6 @@ R_GenTurbTile (byte *pbasetex, void *pdest) } } - void R_GenTurbTile16 (byte *pbasetex, void *pdest) { @@ -560,7 +551,6 @@ R_GenTurbTile16 (byte *pbasetex, void *pdest) } } - void R_GenTile (msurface_t *psurf, void *pdest) { @@ -582,9 +572,3 @@ R_GenTile (msurface_t *psurf, void *pdest) Sys_Error ("Unknown tile type"); } } - - -void -R_ForceLightUpdate (void) -{ -}