summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/mesa/tnl/t_save_playback.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/mesa/tnl/t_save_playback.c b/src/mesa/tnl/t_save_playback.c
index 062fc4c161..f62057249c 100644
--- a/src/mesa/tnl/t_save_playback.c
+++ b/src/mesa/tnl/t_save_playback.c
@@ -27,6 +27,7 @@
* Keith Whitwell <keith@tungstengraphics.com>
*/
+#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;