summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarek Olšák <[email protected]>2019-01-08 10:47:31 -0500
committerMarek Olšák <[email protected]>2019-01-09 11:08:44 -0500
commitfd82a1d1d6be1a3636ca5d8d952ae29fa260abc8 (patch)
tree9c2af3033974e9b74ab68063453aaec33309ac3f
parent5da442338b24cb9ff1c07161a8ce584e9ad09b98 (diff)
st/mesa: don't reference pipe_surface locally in PBO code
Reviewed-by: Brian Paul <[email protected]>
-rw-r--r--src/mesa/state_tracker/st_cb_texture.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/mesa/state_tracker/st_cb_texture.c b/src/mesa/state_tracker/st_cb_texture.c
index 45918e425ac..ff4694da9e0 100644
--- a/src/mesa/state_tracker/st_cb_texture.c
+++ b/src/mesa/state_tracker/st_cb_texture.c
@@ -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);