From f4fbda35b001aac22342596f4beafd9539f2ebb9 Mon Sep 17 00:00:00 2001 From: Keith Whitwell Date: Tue, 1 Nov 2005 17:29:46 +0000 Subject: Add a NotifyInputChanges() callback so that drivers (particularly tnl drivers) can track when the sizes or strides of incoming VB->AttribPtr arrays have changed. --- src/mesa/tnl/t_pipeline.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/mesa/tnl/t_pipeline.c') diff --git a/src/mesa/tnl/t_pipeline.c b/src/mesa/tnl/t_pipeline.c index 61bfed290e..2a87f950ce 100644 --- a/src/mesa/tnl/t_pipeline.c +++ b/src/mesa/tnl/t_pipeline.c @@ -90,6 +90,10 @@ static GLuint check_input_changes( GLcontext *ctx ) } } + if (tnl->pipeline.input_changes && + tnl->Driver.NotifyInputChanges) + tnl->Driver.NotifyInputChanges( ctx, tnl->pipeline.input_changes ); + return tnl->pipeline.input_changes; } -- cgit v1.2.3