softpipe: Don't call pipe_buffer_destroy directly.

Use pipe_buffer_reference instead.
This commit is contained in:
José Fonseca
2008-10-30 16:47:20 +09:00
parent 28a2edb738
commit 1c6fe6564b
2 changed files with 2 additions and 2 deletions

View File

@@ -779,7 +779,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;
}