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.h | 1 + 1 file changed, 1 insertion(+) (limited to 'src/mesa/vbo/vbo.h') diff --git a/src/mesa/vbo/vbo.h b/src/mesa/vbo/vbo.h index 6834f3b5aa..26c3d4e0a7 100644 --- a/src/mesa/vbo/vbo.h +++ b/src/mesa/vbo/vbo.h @@ -127,6 +127,7 @@ vbo_get_minmax_index(struct gl_context *ctx, const struct _mesa_prim *prim, void vbo_use_buffer_objects(struct gl_context *ctx); +void vbo_always_unmap_buffers(struct gl_context *ctx); void vbo_set_draw_func(struct gl_context *ctx, vbo_draw_func func); -- cgit v1.2.3