engine: remove gamma functions from RefAPI

This commit is contained in:
Alibek Omarov
2024-11-02 22:26:27 +03:00
parent 2227e487c0
commit b45bc9af67
4 changed files with 0 additions and 25 deletions

View File

@@ -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 ))

View File

@@ -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,