intel: Handle ARB_vertex_buffer_object state in intel_clear_tris().
authorMichel Dänzer <daenzer@vmware.com>
Sat, 18 Apr 2009 13:47:14 +0000 (15:47 +0200)
committerMichel Dänzer <daenzer@vmware.com>
Sat, 18 Apr 2009 13:47:14 +0000 (15:47 +0200)
Fixes gearsvbo app by Michael Clark.

src/mesa/drivers/dri/intel/intel_clear.c

index 8c431cf1899a0e9af32ef639770a6ceaa7fd88da..6c609336a256e9e11dd1daaa8e2a7af928f8fa6c 100644 (file)
@@ -148,6 +148,11 @@ intel_clear_tris(GLcontext *ctx, GLbitfield mask)
       }
    }
 
+#if FEATURE_ARB_vertex_buffer_object
+   _mesa_BindBufferARB(GL_ARRAY_BUFFER_ARB, 0);
+   _mesa_BindBufferARB(GL_ELEMENT_ARRAY_BUFFER_ARB, 0);
+#endif
+
    intel_meta_set_passthrough_transform(intel);
 
    for (i = 0; i < 4; i++) {