[Fix] (Espryt): query buffer age only after a damage region is declared

This commit is contained in:
2026-10-02 17:11:31 -04:00
parent 233e2f8ced
commit bb4e3e0ec6
19 changed files with 224 additions and 25 deletions
@@ -585,7 +585,10 @@ namespace MobileGL::MG_Backend::DirectVulkan {
#endif
}
Int32 BackendObject_DirectVulkan::QueryCurrentBufferAge() {
// A swapchain image keeps its content through a present whatever region is drawn next: the
// damage region the client may declare is not needed here.
Int32 BackendObject_DirectVulkan::QueryCurrentBufferAge(Bool damageRegionFollows) {
(void)damageRegionFollows;
const std::lock_guard<std::recursive_mutex> lock(m_eglStateMutex);
return pVulkanRenderer ? pVulkanRenderer->CurrentDrawBufferAge() : 0;
}