mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-24 10:20:22 +01:00
st/mesa: don't reference pipe_surface locally in PBO code
Reviewed-by: Brian Paul <brianp@vmware.com>
This commit is contained in:
parent
5da442338b
commit
fd82a1d1d6
1 changed files with 1 additions and 3 deletions
|
|
@ -1243,11 +1243,9 @@ try_pbo_upload_common(struct gl_context *ctx,
|
|||
fb.width = surface->width;
|
||||
fb.height = surface->height;
|
||||
fb.nr_cbufs = 1;
|
||||
pipe_surface_reference(&fb.cbufs[0], surface);
|
||||
fb.cbufs[0] = surface;
|
||||
|
||||
cso_set_framebuffer(cso, &fb);
|
||||
|
||||
pipe_surface_reference(&fb.cbufs[0], NULL);
|
||||
}
|
||||
|
||||
cso_set_viewport_dims(cso, surface->width, surface->height, FALSE);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue