[cairo-commit] glitz/src glitz_buffer.c,1.5,1.6

David Reveman commit at pdx.freedesktop.org
Mon Nov 8 07:11:45 PST 2004


Committed by: davidr

Update of /cvs/cairo/glitz/src
In directory gabe:/tmp/cvs-serv27959/src

Modified Files:
	glitz_buffer.c 
Log Message:
Buffer objects fix (Luca Barbieri)

Index: glitz_buffer.c
===================================================================
RCS file: /cvs/cairo/glitz/src/glitz_buffer.c,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -d -r1.5 -r1.6
--- glitz_buffer.c	3 Nov 2004 22:50:58 -0000	1.5
+++ glitz_buffer.c	8 Nov 2004 15:11:43 -0000	1.6
@@ -302,6 +302,7 @@
 
     gl->bind_buffer (buffer->target, buffer->name);
     pointer = gl->map_buffer (buffer->target, buffer_access);
+    gl->bind_buffer (buffer->target, 0);
     
     buffer->drawable->backend->pop_current (buffer->drawable);
   }
@@ -322,6 +323,8 @@
     
     buffer->drawable->backend->push_current (buffer->drawable, NULL,
                                              GLITZ_ANY_CONTEXT_CURRENT);
+
+    gl->bind_buffer (buffer->target, buffer->name);
     
     if (gl->unmap_buffer (buffer->target) == GLITZ_GL_FALSE)
       status = GLITZ_STATUS_CONTENT_DESTROYED;




More information about the cairo-commit mailing list