From 56e89c9e4fb00b5c2af4536d4c50294608d0c46c Mon Sep 17 00:00:00 2001 From: Radosław Kujawa Date: Sun, 2 Aug 2026 22:04:06 +0200 Subject: Performance improvements, support userspace simulators --- src/mesa/tnl/t_context.c | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'src/mesa/tnl/t_context.c') 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; } -- cgit