summaryrefslogtreecommitdiffstats
path: root/src/mesa
diff options
context:
space:
mode:
authorKrzysztof Sobiecki <[email protected]>2015-10-14 10:03:00 -0600
committerEmil Velikov <[email protected]>2015-10-21 14:23:21 +0100
commitb0b31397e2ecb44a7667461c87200494f31b56c4 (patch)
tree8e1b396af0cfb7256a6211098f7dde4b42c7bcf0 /src/mesa
parentc0b85c5a4c8cc2fbbc25016b6c6734ff2ff4a4a5 (diff)
st/fbo: use pipe_surface_release instead of pipe_surface_reference
pipe_surface_reference have problems with deleted contexts, so use of pipe_surface_release might be more appropriate. Fixes Wasteland 2 Director's Cut crash on start. Cc: [email protected] Reviewed-by: Brian Paul <[email protected]> (cherry picked from commit 14f7ce42484c31a45fcb6aabdf503f7496a9a94c)
Diffstat (limited to 'src/mesa')
-rw-r--r--src/mesa/state_tracker/st_cb_fbo.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mesa/state_tracker/st_cb_fbo.c b/src/mesa/state_tracker/st_cb_fbo.c
index 57075904450..73b1c5ce7b3 100644
--- a/src/mesa/state_tracker/st_cb_fbo.c
+++ b/src/mesa/state_tracker/st_cb_fbo.c
@@ -478,7 +478,7 @@ st_update_renderbuffer_surface(struct st_context *st,
surf_tmpl.u.tex.first_layer = first_layer;
surf_tmpl.u.tex.last_layer = last_layer;
- pipe_surface_reference(&strb->surface, NULL);
+ pipe_surface_release(pipe, &strb->surface);
strb->surface = pipe->create_surface(pipe, resource, &surf_tmpl);
}