Skip to content

Remove destroy_image from unpresent function

Fixes an issue, where in Wayland the new swapchain hanged during its first image presentation in the page flipping thread when it waited for the old swapchain to finish presenting its pending images. As the new swapchain had started presenting destroy_image was called during the unpresent function for the old swapchain and the image's status was set to INVALID instead of FREE. So free_image_found never returned true and subsequently get_free_buffer was blocked in the loop. The issue is fixed by removing the call to destroy_image in unpresent_image as it is redundant and is done in swapchain teardown.

Change-Id: I192607f50eb5e5f0e4e9baf66aedf02221f20b63 Signed-off-by: Iason Paraskevopoulos iason.paraskevopoulos@arm.com

Merge request reports