diff --git a/engine/client/gamma.c b/engine/client/gamma.c index f23308ad..61e21332 100644 --- a/engine/client/gamma.c +++ b/engine/client/gamma.c @@ -191,17 +191,6 @@ byte LightToTexGamma( byte b ) return lightgammatable[b << 2] >> 2; } -uint LightToTexGammaEx( uint b ) -{ - if( FBitSet( host.features, ENGINE_LINEAR_GAMMA_SPACE )) - return b; - - if( unlikely( b >= ARRAYSIZE( lightgammatable ))) - return 0; - - return lightgammatable[b]; -} - uint ScreenGammaTable( uint b ) { if( FBitSet( host.features, ENGINE_LINEAR_GAMMA_SPACE )) diff --git a/engine/client/ref_common.c b/engine/client/ref_common.c index dc0b8817..d9568c97 100644 --- a/engine/client/ref_common.c +++ b/engine/client/ref_common.c @@ -401,12 +401,6 @@ static const ref_api_t gEngfuncs = SW_LockBuffer, SW_UnlockBuffer, - LightToTexGamma, - LightToTexGammaEx, - TextureToGamma, - ScreenGammaTable, - LinearGammaTable, - CL_GetLightStyle, CL_GetDynamicLight, CL_GetEntityLight, diff --git a/engine/common/common.h b/engine/common/common.h index 74c13d4b..b5a0c42e 100644 --- a/engine/common/common.h +++ b/engine/common/common.h @@ -822,7 +822,6 @@ void S_StopAllSounds( qboolean ambient ); // gamma routines byte LightToTexGamma( byte b ); byte TextureToGamma( byte ); -uint LightToTexGammaEx( uint ); uint ScreenGammaTable( uint ); uint LinearGammaTable( uint ); void V_Init( void ); diff --git a/engine/ref_api.h b/engine/ref_api.h index c7d4a1ee..d5aac685 100644 --- a/engine/ref_api.h +++ b/engine/ref_api.h @@ -426,13 +426,6 @@ typedef struct ref_api_s void *(*SW_LockBuffer)( void ); void (*SW_UnlockBuffer)( void ); - // gamma - byte (*LightToTexGamma)( byte ); // software gamma support - uint (*LightToTexGammaEx)( uint ); // software gamma support - byte (*TextureToGamma)( byte ); - uint (*ScreenGammaTable)( uint ); - uint (*LinearGammaTable)( uint ); - // renderapi lightstyle_t* (*GetLightStyle)( int number ); dlight_t* (*GetDynamicLight)( int number );