diff options
author | Brian Paul <brian.paul@tungstengraphics.com> | 2000-06-30 14:16:37 +0000 |
---|---|---|
committer | Brian Paul <brian.paul@tungstengraphics.com> | 2000-06-30 14:16:37 +0000 |
commit | 55b536ab305a8d711125f69229d67871f155d0c2 (patch) | |
tree | 65ab09c9f1b868ea2e538a9af51d9c87e51f5aba | |
parent | 73d7a8a9a392b93956f767277e44e12beeaa15b8 (diff) |
NeedEyeCoords if non-uniform scale transform
-rw-r--r-- | src/mesa/main/context.c | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/src/mesa/main/context.c b/src/mesa/main/context.c index 6a030f2e1f..e7da2d8ac8 100644 --- a/src/mesa/main/context.c +++ b/src/mesa/main/context.c @@ -1,4 +1,4 @@ -/* $Id: context.c,v 1.18.2.11 2000/06/27 15:04:20 brianp Exp $ */ +/* $Id: context.c,v 1.18.2.12 2000/06/30 14:16:37 brianp Exp $ */ /* * Mesa 3-D graphics library @@ -2434,8 +2434,12 @@ void gl_update_state( GLcontext *ctx ) ctx->NeedEyeNormals = GL_FALSE; if (ctx->Light.Enabled) { - if ((ctx->Light.Flags & LIGHT_POSITIONAL) || ctx->Light.NeedVertices){ - /* Need length for attenuation or need angle for spotlights */ + if ((ctx->Light.Flags & LIGHT_POSITIONAL) || + ctx->Light.NeedVertices || + !TEST_MAT_FLAGS( &ctx->ModelView, MAT_FLAGS_LENGTH_PRESERVING)) { + /* Need length for attenuation or need angle for spotlights + * or non-uniform scale matrix + */ ctx->NeedEyeCoords = GL_TRUE; } ctx->NeedEyeNormals = ctx->NeedEyeCoords; |