python: Do not pass screen object to pipe_buffer_reference.
authorMichal Krol <michal@vmware.com>
Tue, 17 Mar 2009 09:26:38 +0000 (10:26 +0100)
committerMichal Krol <michal@vmware.com>
Tue, 17 Mar 2009 09:26:38 +0000 (10:26 +0100)
src/gallium/state_trackers/python/p_context.i

index 7ddd2d55ef138ae5624f4358d87440c83b59eb72..1fdbdf98b26d5d0a0a1ba43dba8e3320b83d5d70 100644 (file)
@@ -247,7 +247,7 @@ struct st_context {
       util_draw_vertex_buffer(pipe, vbuf, 0, prim, num_verts, num_attribs);
       
 error2:
-      pipe_buffer_reference(screen, &vbuf, NULL);
+      pipe_buffer_reference(&vbuf, NULL);
 error1:
       ;
    }