opengl: detect android fence support and disable explicit if it's missing (#11077)

Checks for explicit sync support via the android fences, and falls back to implicit sync if it isn't
This commit is contained in:
Vaxry 2025-07-19 12:38:41 +02:00 committed by GitHub
parent ae3cc48f22
commit d84699d8e5
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
6 changed files with 47 additions and 15 deletions

View file

@ -253,6 +253,8 @@ class CHyprOpenGLImpl {
void ensureLockTexturesRendered(bool load);
bool explicitSyncSupported();
bool m_shadersInitialized = false;
SP<SPreparedShaders> m_shaders;
@ -297,6 +299,7 @@ class CHyprOpenGLImpl {
bool KHR_display_reference = false;
bool IMG_context_priority = false;
bool EXT_create_context_robustness = false;
bool EGL_ANDROID_native_fence_sync_ext = false;
} m_exts;
SP<CTexture> m_screencopyDeniedTexture;