Signed-off-by: Iason Paraskevopoulos <iason.paraskevopoulos@arm.com>
Change-Id: I1b917f5287c635dbb00b05607c5a36ce7b11767e
VkResult init_platform(VkDevice device, const VkSwapchainCreateInfoKHR *swapchain_create_info,
bool &use_presentation_thread) override
{
+ use_presentation_thread = true;
return VK_SUCCESS;
};
* initialize the page flip thread so the present_image function can be called
* during vkQueuePresent.
*/
- if (m_present_mode == VK_PRESENT_MODE_MAILBOX_KHR)
- {
- use_presentation_thread = false;
- }
+ use_presentation_thread = (m_present_mode != VK_PRESENT_MODE_MAILBOX_KHR);
return VK_SUCCESS;
}