[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
@@ -48,7 +48,9 @@ namespace MobileGL::MG_Backend::DirectGLES {
const MG_Util::Damage::Region& region) override;
// A window surface's age is the driver's (EGL_EXT_buffer_age); a pbuffer keeps its content,
// so it is 1 once it has been presented (DirectGLES::CurrentDrawBufferAge).
Int32 QueryCurrentBufferAge() override;
Int32 QueryCurrentBufferAge(Bool damageRegionFollows) override;
// eglSetDamageRegionKHR on a window surface whose driver has EGL_KHR_partial_update.
Bool SetCurrentDamageRegion(const MG_Util::Damage::Region& region) override;
void ReleaseEGLSurface(EGLSurface surface) override;
void ReleaseEGLResources() override;
// The server window going and coming back: each window surface on it swaps its native EGL