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
|
|
@ -210,7 +210,7 @@ CProtocolManager::CProtocolManager() {
|
|||
else
|
||||
lease.reset();
|
||||
|
||||
if (!PROTO::sync)
|
||||
if (g_pHyprOpenGL->m_exts.EGL_ANDROID_native_fence_sync_ext && !PROTO::sync)
|
||||
PROTO::sync = makeUnique<CDRMSyncobjProtocol>(&wp_linux_drm_syncobj_manager_v1_interface, 1, "DRMSyncobj");
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue