From dbae319271084cce30eb1ee7f1cfec808b250512 Mon Sep 17 00:00:00 2001 From: Travis Wehrman Date: Sat, 15 Apr 2017 22:12:48 -0500 Subject: [PATCH] Fixed linker error when LTCG is enabled * Needed to be consistent with the definition in color_conversion.cpp --- mp/src/public/mathlib/mathlib.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mp/src/public/mathlib/mathlib.h b/mp/src/public/mathlib/mathlib.h index 05df16d5..f58c1796 100644 --- a/mp/src/public/mathlib/mathlib.h +++ b/mp/src/public/mathlib/mathlib.h @@ -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]; }