mirror of
https://github.com/ValveSoftware/source-sdk-2013.git
synced 2024-12-30 16:55:35 +03:00
Fixed linker error when LTCG is enabled
* Needed to be consistent with the definition in color_conversion.cpp
This commit is contained in:
parent
0d8dceea43
commit
dbae319271
@ -1003,7 +1003,7 @@ void BuildGammaTable( float gamma, float texGamma, float brightness, int overbri
|
||||
// convert texture to linear 0..1 value
|
||||
inline float TexLightToLinear( int c, int exponent )
|
||||
{
|
||||
extern float power2_n[256];
|
||||
extern ALIGN128 float power2_n[256];
|
||||
Assert( exponent >= -128 && exponent <= 127 );
|
||||
return ( float )c * power2_n[exponent+128];
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user