From ea110e3aa0bf01bea7b95e885d60db9effd7571f Mon Sep 17 00:00:00 2001 From: James Canete Date: Sat, 15 Dec 2012 00:39:17 +0000 Subject: Only declare var_SampleToView in lightall shader when it is actually used. --- src/rend2/glsl/lightall_vp.glsl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/rend2/glsl/lightall_vp.glsl') diff --git a/src/rend2/glsl/lightall_vp.glsl b/src/rend2/glsl/lightall_vp.glsl index d3c61683..05a41f4d 100644 --- a/src/rend2/glsl/lightall_vp.glsl +++ b/src/rend2/glsl/lightall_vp.glsl @@ -65,7 +65,7 @@ varying vec2 var_DiffuseTex; varying vec2 var_LightTex; #endif -#if defined(USE_NORMALMAP) || defined(USE_LIGHT) && !defined(USE_FAST_LIGHT) +#if defined(USE_TCGEN) || defined(USE_NORMALMAP) || (defined(USE_LIGHT) && !defined(USE_FAST_LIGHT)) varying vec3 var_SampleToView; #endif @@ -154,7 +154,7 @@ void main() vec3 SampleToView = u_ViewOrigin - position.xyz; #endif -#if defined(USE_NORMALMAP) || defined(USE_LIGHT) && !defined(USE_FAST_LIGHT) +#if defined(USE_TCGEN) || defined(USE_NORMALMAP) || (defined(USE_LIGHT) && !defined(USE_FAST_LIGHT)) var_SampleToView = SampleToView; #endif -- cgit