diff options
author | Brian Paul <[email protected]> | 2002-04-01 17:03:38 +0000 |
---|---|---|
committer | Brian Paul <[email protected]> | 2002-04-01 17:03:38 +0000 |
commit | 86a7cc6f2c6ec49b5f09f03a872a49bce5afbe85 (patch) | |
tree | 6b62328ef29ca9080b420f8fc2f67644863c9e49 /src | |
parent | 6c921af034525fc28f006e447f62a31e00649f2c (diff) |
minor optimization in GL_TRANSFORM_BIT popping
Diffstat (limited to 'src')
-rw-r--r-- | src/mesa/main/attrib.c | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/src/mesa/main/attrib.c b/src/mesa/main/attrib.c index 739791878fd..5e6da38d98d 100644 --- a/src/mesa/main/attrib.c +++ b/src/mesa/main/attrib.c @@ -1,4 +1,4 @@ -/* $Id: attrib.c,v 1.62 2002/03/29 17:27:59 brianp Exp $ */ +/* $Id: attrib.c,v 1.63 2002/04/01 17:03:38 brianp Exp $ */ /* * Mesa 3-D graphics library @@ -1068,9 +1068,11 @@ _mesa_PopAttrib(void) } /* normalize/rescale */ - _mesa_set_enable(ctx, GL_NORMALIZE, ctx->Transform.Normalize); - _mesa_set_enable(ctx, GL_RESCALE_NORMAL_EXT, - ctx->Transform.RescaleNormals); + if (xform->Normalize != ctx->Transform.Normalize) + _mesa_set_enable(ctx, GL_NORMALIZE,ctx->Transform.Normalize); + if (xform->RescaleNormals != ctx->Transform.RescaleNormals) + _mesa_set_enable(ctx, GL_RESCALE_NORMAL_EXT, + ctx->Transform.RescaleNormals); } break; case GL_TEXTURE_BIT: |