aboutsummaryrefslogtreecommitdiffstats
path: root/src/gallium
diff options
context:
space:
mode:
authorEmil Velikov <[email protected]>2018-08-29 18:14:02 +0100
committerEmil Velikov <[email protected]>2018-10-03 13:38:05 +0100
commitd081ad2aa25c5673ec1927fca81e6ac65de4b1b1 (patch)
tree81454a367bce395190cb025f7c61a10d62e594ee /src/gallium
parent1301674c393671b407eab30aa66bdea6977b1ac8 (diff)
vl/dri3: do full teardown on screen_destroy
Earlier commit added support for 'front_buffers', erroneously adding a return in vl_dri3_screen_destroy. Effectively leaking a lot of state. Fixes: 8d7ac0a4e4d ("vl/dri3: implement DRI3 BufferFromPixmap") Cc: Leo Liu <[email protected]> Cc: Christian König <[email protected]> Signed-off-by: Emil Velikov <[email protected]> Reviewed-by: Leo Liu <[email protected]>
Diffstat (limited to 'src/gallium')
-rw-r--r--src/gallium/auxiliary/vl/vl_winsys_dri3.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/src/gallium/auxiliary/vl/vl_winsys_dri3.c b/src/gallium/auxiliary/vl/vl_winsys_dri3.c
index 82b6445a767..d6a1ec0bfdd 100644
--- a/src/gallium/auxiliary/vl/vl_winsys_dri3.c
+++ b/src/gallium/auxiliary/vl/vl_winsys_dri3.c
@@ -726,7 +726,6 @@ vl_dri3_screen_destroy(struct vl_screen *vscreen)
if (scrn->front_buffer) {
dri3_free_front_buffer(scrn, scrn->front_buffer);
scrn->front_buffer = NULL;
- return;
}
for (i = 0; i < BACK_BUFFER_NUM; ++i) {