From f1bbe8d0a52f1c74a1d45117f13a690fe2b013ee Mon Sep 17 00:00:00 2001 From: Keith Whitwell Date: Mon, 13 Oct 2003 12:27:58 +0000 Subject: Flush vertex data before playing back a vertex_list. --- src/mesa/tnl/t_save_playback.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/mesa') diff --git a/src/mesa/tnl/t_save_playback.c b/src/mesa/tnl/t_save_playback.c index 062fc4c1618..f62057249c9 100644 --- a/src/mesa/tnl/t_save_playback.c +++ b/src/mesa/tnl/t_save_playback.c @@ -27,6 +27,7 @@ * Keith Whitwell */ +#include "context.h" #include "imports.h" #include "mtypes.h" #include "state.h" @@ -123,6 +124,8 @@ void _tnl_playback_vertex_list( GLcontext *ctx, void *data ) struct tnl_vertex_list *node = (struct tnl_vertex_list *)data; TNLcontext *tnl = TNL_CONTEXT(ctx); + FLUSH_CURRENT(ctx, 0); + if (!node->prim_count || !node->count) return; -- cgit v1.2.3