Merge commit 'origin/gallium-0.1' into gallium-0.2
[mesa.git] / src / mesa / state_tracker / st_cb_bitmap.c
index 73645201cc6bae327ad01ff14d656c7a27482962..aa68aa9e3c18e53f6d32add5aa0fc76da140ac06 100644 (file)
@@ -791,7 +791,7 @@ st_destroy_bitmap(struct st_context *st)
    }
 
    if (st->bitmap.vbuf) {
-      pipe_buffer_destroy(pipe->screen, st->bitmap.vbuf);
+      pipe_buffer_reference(pipe->screen, &st->bitmap.vbuf, NULL);
       st->bitmap.vbuf = NULL;
    }