st/fbo: use pipe_surface_release instead of pipe_surface_reference
authorKrzysztof Sobiecki <sobkas@gmail.com>
Wed, 14 Oct 2015 16:03:00 +0000 (10:03 -0600)
committerBrian Paul <brianp@vmware.com>
Wed, 14 Oct 2015 18:47:07 +0000 (12:47 -0600)
commit14f7ce42484c31a45fcb6aabdf503f7496a9a94c
tree4a124286a5212c96d1f0e8372067a93f4bc68a32
parent93267887a06e760b4b20618523df5e8aa4e70307
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: mesa-stable@lists.freedesktop.org
Reviewed-by: Brian Paul <brianp@vmware.com>
src/mesa/state_tracker/st_cb_fbo.c