diff options
| author | Radosław Kujawa <radoslaw.kujawa@c0ff33.net> | 2026-08-02 22:04:06 +0200 |
|---|---|---|
| committer | Radosław Kujawa <radoslaw.kujawa@c0ff33.net> | 2026-08-02 22:04:32 +0200 |
| commit | 56e89c9e4fb00b5c2af4536d4c50294608d0c46c (patch) | |
| tree | b247c62b317ce11e8c26e5b311a16cfae2f7d9c9 /src/mesa/tnl/t_context.c | |
| parent | afc74a01283fad7dfbbd670a535e68d90de7ed9a (diff) | |
Diffstat (limited to 'src/mesa/tnl/t_context.c')
| -rw-r--r-- | src/mesa/tnl/t_context.c | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/src/mesa/tnl/t_context.c b/src/mesa/tnl/t_context.c index e4d0d04..8db1c78 100644 --- a/src/mesa/tnl/t_context.c +++ b/src/mesa/tnl/t_context.c @@ -54,6 +54,13 @@ _tnl_MakeCurrent( GLcontext *ctx, (void) ctx; (void) drawBuffer; (void) readBuffer; } +static void +_tnl_validate_material( GLcontext *ctx ) +{ + _mesa_update_material( ctx, ~0 ); + _mesa_validate_all_lighting_tables( ctx ); +} + static void install_driver_callbacks( GLcontext *ctx ) @@ -123,7 +130,7 @@ _tnl_CreateContext( GLcontext *ctx ) tnl->Driver.Render.PrimTabElts = _tnl_render_tab_elts; tnl->Driver.Render.PrimTabVerts = _tnl_render_tab_verts; - tnl->Driver.NotifyMaterialChange = _mesa_validate_all_lighting_tables; + tnl->Driver.NotifyMaterialChange = _tnl_validate_material; return GL_TRUE; } |
