glsl: fix memory leak
[mesa.git] / src / mesa / tnl / t_rasterpos.c
index 04fb1d8f8c2b5dc788540af3768dbd398cee22e4..f1fdddf0f5a4ff4103fff14b55735614a89dcb15 100644 (file)
@@ -167,7 +167,7 @@ shade_rastpos(GLcontext *ctx,
                                light->QuadraticAttenuation));
 
         if (light->_Flags & LIGHT_SPOT) {
-           GLfloat PV_dot_dir = - DOT3(VP, light->_NormDirection);
+           GLfloat PV_dot_dir = - DOT3(VP, light->_NormSpotDirection);
 
            if (PV_dot_dir<light->_CosCutoff) {
               continue;