From 02c5890c2fa1d3d1c6b8be1170657e3c64bc2506 Mon Sep 17 00:00:00 2001 From: Alibek Omarov Date: Sat, 27 Jan 2024 22:45:27 +0300 Subject: [PATCH] ref: soft: cleanup after RefAPI changes, remove unused functions --- ref/soft/r_context.c | 10 ---------- ref/soft/r_main.c | 35 ----------------------------------- 2 files changed, 45 deletions(-) diff --git a/ref/soft/r_context.c b/ref/soft/r_context.c index bfb41355..8fcfee4d 100644 --- a/ref/soft/r_context.c +++ b/ref/soft/r_context.c @@ -317,11 +317,6 @@ static void GAME_EXPORT R_ShowTextures( void ) // textures undone too } -static void GAME_EXPORT R_ShowTree( void ) -{ - // do we really need this here??? -} - void GAME_EXPORT R_SetupSky(const char *skyboxname) { @@ -378,11 +373,6 @@ static void GAME_EXPORT GL_TextureTarget(uint target) } -static void GAME_EXPORT GL_BuildLightmaps( void ) -{ - CL_RunLightStyles(); -} - void GAME_EXPORT Mod_SetOrthoBounds(const float *mins, const float *maxs) { diff --git a/ref/soft/r_main.c b/ref/soft/r_main.c index 6595bee5..30f6281a 100644 --- a/ref/soft/r_main.c +++ b/ref/soft/r_main.c @@ -1596,41 +1596,6 @@ void GAME_EXPORT R_RenderScene( void ) // R_EndGL(); } -/* -=============== -R_DoResetGamma - -gamma will be reset for -some type of screenshots -=============== -*/ -static qboolean R_DoResetGamma( void ) -{ - // FIXME: this looks ugly. apply the backward gamma changes to the output image - return false; -#if 0 - switch( cls.scrshot_action ) - { - case scrshot_normal: - if( CL_IsDevOverviewMode( )) - return true; - return false; - case scrshot_snapshot: - if( CL_IsDevOverviewMode( )) - return true; - return false; - case scrshot_plaque: - case scrshot_savegame: - case scrshot_envshot: - case scrshot_skyshot: - case scrshot_mapshot: - return true; - default: - return false; - } -#endif -} - void R_GammaChanged( qboolean do_reset_gamma ) { if( do_reset_gamma ) // unused