summaryrefslogtreecommitdiffstats
path: root/src/mesa/tnl/t_pipeline.c
diff options
context:
space:
mode:
authorKeith Whitwell <[email protected]>2005-11-01 17:29:46 +0000
committerKeith Whitwell <[email protected]>2005-11-01 17:29:46 +0000
commitf4fbda35b001aac22342596f4beafd9539f2ebb9 (patch)
tree113f166779593ea538904c357b8200079146c062 /src/mesa/tnl/t_pipeline.c
parentc3626a91cee5034528f3f92c802a8e5947ea5f92 (diff)
Add a NotifyInputChanges() callback so that drivers (particularly tnl
drivers) can track when the sizes or strides of incoming VB->AttribPtr arrays have changed.
Diffstat (limited to 'src/mesa/tnl/t_pipeline.c')
-rw-r--r--src/mesa/tnl/t_pipeline.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/mesa/tnl/t_pipeline.c b/src/mesa/tnl/t_pipeline.c
index 61bfed290e9..2a87f950ce2 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;
}