summaryrefslogtreecommitdiffstats
path: root/src/mesa/tnl/t_save_playback.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/mesa/tnl/t_save_playback.c')
-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 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 <[email protected]>
*/
+#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;