diff options
author | Dave Airlie <airlied@linux.ie> | 2007-07-04 15:29:31 +1000 |
---|---|---|
committer | Dave Airlie <airlied@linux.ie> | 2007-07-04 15:30:40 +1000 |
commit | 5657fc5b4c6581166430f1a5144f1f8b7e4e78eb (patch) | |
tree | c2530abb1c4b3406dea270ceaf32b221d80fe9b3 /src/mesa/drivers/dri/r300/r300_swtcl.c | |
parent | 7ff4359a3be1278b26950f96ab23014a667af838 (diff) |
r300: only init swtcl on tcl-less cards
Diffstat (limited to 'src/mesa/drivers/dri/r300/r300_swtcl.c')
-rw-r--r-- | src/mesa/drivers/dri/r300/r300_swtcl.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/mesa/drivers/dri/r300/r300_swtcl.c b/src/mesa/drivers/dri/r300/r300_swtcl.c index 7aea063447..c949f33bf3 100644 --- a/src/mesa/drivers/dri/r300/r300_swtcl.c +++ b/src/mesa/drivers/dri/r300/r300_swtcl.c @@ -668,6 +668,11 @@ void r300InitSwtcl(GLcontext *ctx) _tnl_need_projected_coords( ctx, GL_FALSE ); r300ChooseRenderState(ctx); + + _mesa_validate_all_lighting_tables( ctx ); + + tnl->Driver.NotifyMaterialChange = + _mesa_validate_all_lighting_tables; } void r300DestroySwtcl(GLcontext *ctx) |