summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorpfo <pfolinux@rdi-linux>2011-05-31 12:37:05 +0200
committerpfo <pfolinux@rdi-linux>2011-05-31 15:02:56 +0200
commit1b4213420775d128d952946bea5c85998790eb57 (patch)
tree72b0af70c99a5ce6dfebb818e2ca00fbf380817a
parent559a79ff87c19e158fa8ec7ef5f93bf5ffcab0cd (diff)
Corrects 'référence indéfinie vers « vbo_exec_FlushVertices_internal »'
-rw-r--r--src/mesa/vbo/vbo_exec_api.c16
1 files changed, 16 insertions, 0 deletions
diff --git a/src/mesa/vbo/vbo_exec_api.c b/src/mesa/vbo/vbo_exec_api.c
index fcd544de76..9328e3ea07 100644
--- a/src/mesa/vbo/vbo_exec_api.c
+++ b/src/mesa/vbo/vbo_exec_api.c
@@ -428,6 +428,22 @@ do { \
#include "vbo_attrib_tmp.h"
+/**
+ * Flush (draw) vertices.
+ * \param unmap - leave VBO unmapped after flushing?
+ */
+static void
+vbo_exec_FlushVertices_internal(struct vbo_exec_context *exec, GLboolean unmap)
+{
+ if (exec->vtx.vert_count || unmap) {
+ vbo_exec_vtx_flush( exec, unmap );
+ }
+
+ if (exec->vtx.vertex_size) {
+ vbo_exec_copy_to_current( exec );
+ reset_attrfv( exec );
+ }
+}
#if FEATURE_beginend