projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5da4423
)
st/mesa: don't reference pipe_surface locally in PBO code
author
Marek Olšák
<marek.olsak@amd.com>
Tue, 8 Jan 2019 15:47:31 +0000
(10:47 -0500)
committer
Marek Olšák
<marek.olsak@amd.com>
Wed, 9 Jan 2019 16:08:44 +0000
(11:08 -0500)
Reviewed-by: Brian Paul <brianp@vmware.com>
src/mesa/state_tracker/st_cb_texture.c
patch
|
blob
|
history
diff --git
a/src/mesa/state_tracker/st_cb_texture.c
b/src/mesa/state_tracker/st_cb_texture.c
index 45918e425acda7116a8b989511d82767fdc62c29..ff4694da9e0687e4f1aba78d21e08c21b158601b 100644
(file)
--- 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);