Browse Source

ref: soft: cleanup after RefAPI changes, remove unused functions

master
Alibek Omarov 5 months ago
parent
commit
02c5890c2f
  1. 10
      ref/soft/r_context.c
  2. 35
      ref/soft/r_main.c

10
ref/soft/r_context.c

@ -317,11 +317,6 @@ static void GAME_EXPORT R_ShowTextures( void ) @@ -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) @@ -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)
{

35
ref/soft/r_main.c

@ -1596,41 +1596,6 @@ void GAME_EXPORT R_RenderScene( void ) @@ -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

Loading…
Cancel
Save