summaryrefslogtreecommitdiff
path: root/src/render/OpenGL.hpp
diff options
context:
space:
mode:
authorVaxry <43317083+vaxerski@users.noreply.github.com>2025-07-19 12:38:41 +0200
committerGitHub <noreply@github.com>2025-07-19 12:38:41 +0200
commitd84699d8e5e984422da37595ee41fc0d8d93fef5 (patch)
treeb3ed5c1f47d25e961c53c823ead9d0000141a138 /src/render/OpenGL.hpp
parentae3cc48f223386b057137400354ed0ca1f7a8b1a (diff)
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
Diffstat (limited to 'src/render/OpenGL.hpp')
-rw-r--r--src/render/OpenGL.hpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/render/OpenGL.hpp b/src/render/OpenGL.hpp
index 4c6f55f9..c5040e0e 100644
--- a/src/render/OpenGL.hpp
+++ b/src/render/OpenGL.hpp
@@ -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;