projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
49a3ea8
)
Move setting of _NEW_LIGHT to only occur when materials are present.
author
Keith Whitwell
<keith@tungstengraphics.com>
Wed, 22 Nov 2006 09:34:55 +0000
(09:34 +0000)
committer
Keith Whitwell
<keith@tungstengraphics.com>
Wed, 22 Nov 2006 09:34:55 +0000
(09:34 +0000)
src/mesa/tnl/t_vtx_api.c
patch
|
blob
|
history
diff --git
a/src/mesa/tnl/t_vtx_api.c
b/src/mesa/tnl/t_vtx_api.c
index b766ce2d2ce0275745fc03e7fa7c4234e682fd33..77eec8b3b448ffae8142a1572b175f67a53affdc 100644
(file)
--- a/
src/mesa/tnl/t_vtx_api.c
+++ b/
src/mesa/tnl/t_vtx_api.c
@@
-171,11
+171,10
@@
static void _tnl_copy_to_current( GLcontext *ctx )
if (tnl->vtx.have_materials) {
tnl->Driver.NotifyMaterialChange( ctx );
+ ctx->NewState |= _NEW_LIGHT;
}
ctx->Driver.NeedFlush &= ~FLUSH_UPDATE_CURRENT;
-
- ctx->NewState |= _NEW_LIGHT;
}