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:
parent
ae3cc48f22
commit
d84699d8e5
6 changed files with 47 additions and 15 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue