From 8731f0363fea81394417b2da8a9ac9788a0dcfc6 Mon Sep 17 00:00:00 2001 From: Brian Paul Date: Tue, 1 Mar 2011 17:16:53 -0700 Subject: vbo: add vbo_always_unmap_buffers() Drivers can call this function as needed. It tells the VBO module to always unmap the current glBegin/glEnd VBO when we flush. Otherwise it's possible to be in a flushed state but still have the VBO mapped. --- src/mesa/vbo/vbo_exec.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/mesa/vbo/vbo_exec.h') diff --git a/src/mesa/vbo/vbo_exec.h b/src/mesa/vbo/vbo_exec.h index 1b0ed79473..d52a557e03 100644 --- a/src/mesa/vbo/vbo_exec.h +++ b/src/mesa/vbo/vbo_exec.h @@ -143,6 +143,9 @@ struct vbo_exec_context const struct gl_client_array *inputs[VERT_ATTRIB_MAX]; } array; + /* Which flags to set in vbo_exec_BeginVertices() */ + GLbitfield begin_vertices_flags; + #ifdef DEBUG GLint flush_call_depth; #endif -- cgit v1.2.3