mirror of
https://github.com/YGGverse/xash3d-fwgs.git
synced 2025-01-17 18:40:02 +00:00
engine: gamma: use FBitSet
This commit is contained in:
parent
aa07dab8ab
commit
37aa5b1e99
@ -79,7 +79,7 @@ void BuildGammaTable( float lightgamma, float brightness )
|
||||
|
||||
byte LightToTexGamma( byte b )
|
||||
{
|
||||
if( host.features & ENGINE_LINEAR_GAMMA_SPACE )
|
||||
if( FBitSet( host.features, ENGINE_LINEAR_GAMMA_SPACE ))
|
||||
return b;
|
||||
else
|
||||
return lightgammatable[b];
|
||||
@ -87,7 +87,7 @@ byte LightToTexGamma( byte b )
|
||||
|
||||
byte TextureToGamma( byte b )
|
||||
{
|
||||
if( host.features & ENGINE_LINEAR_GAMMA_SPACE )
|
||||
if( FBitSet( host.features, ENGINE_LINEAR_GAMMA_SPACE ))
|
||||
return b;
|
||||
else
|
||||
return texgammatable[b];
|
||||
|
Loading…
x
Reference in New Issue
Block a user