mirror of
https://gitee.com/openharmony/third_party_mesa3d
synced 2024-11-27 17:40:43 +00:00
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: 8d7ac0a4e4
("vl/dri3: implement DRI3 BufferFromPixmap")
Cc: Leo Liu <leo.liu@amd.com>
Cc: Christian König <christian.koenig@amd.com>
Signed-off-by: Emil Velikov <emil.velikov@collabora.com>
Reviewed-by: Leo Liu <leo.liu@amd.com>
This commit is contained in:
parent
1301674c39
commit
d081ad2aa2
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user