softpipe: Don't call pipe_buffer_destroy directly.
Use pipe_buffer_reference instead.
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user