diff options
author | Keith Whitwell <[email protected]> | 2003-10-13 12:27:58 +0000 |
---|---|---|
committer | Keith Whitwell <[email protected]> | 2003-10-13 12:27:58 +0000 |
commit | f1bbe8d0a52f1c74a1d45117f13a690fe2b013ee (patch) | |
tree | c3448c1b7ec327a8738266e28968de0e3ea63e87 /src/mesa | |
parent | 3c0cfda46b4f36fc4c643036b4f579749bca34d9 (diff) |
Flush vertex data before playing back a vertex_list.
Diffstat (limited to 'src/mesa')
-rw-r--r-- | src/mesa/tnl/t_save_playback.c | 3 |
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; |