From 95cc7dd358e6916f4caf2891ff0a46935ec56dbb Mon Sep 17 00:00:00 2001 From: Andras Becsi Date: Mon, 23 Jun 2014 14:32:57 +0200 Subject: Check for EGL_KHR_fence_sync instead of EGL_KHR_reusable_sync We created an EGL_KHR_fence_sync on the chromium thread but tried to verify if the wait function implementation is available by testing for the EGL_KHR_reusable_sync extension in the scene graph thread. Since the latter extension is not supported by most of our devices, we never actually waited for the rendering to finish. Change-Id: Ied829d4035d42899cfb3f86de018bc48e61c0cc0 Reviewed-by: Jocelyn Turcotte --- src/core/delegated_frame_node.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/core/delegated_frame_node.cpp b/src/core/delegated_frame_node.cpp index fd073ad3a..b6585a232 100644 --- a/src/core/delegated_frame_node.cpp +++ b/src/core/delegated_frame_node.cpp @@ -242,14 +242,14 @@ static void waitAndDeleteChromiumSync(FenceSync *sync) case FenceSync::NoSync: break; case FenceSync::EglSync: -#ifdef EGL_KHR_reusable_sync +#ifdef EGL_KHR_fence_sync { static bool resolved = false; static PFNEGLCLIENTWAITSYNCKHRPROC eglClientWaitSyncKHR = 0; static PFNEGLDESTROYSYNCKHRPROC eglDestroySyncKHR = 0; if (!resolved) { - if (hasEGLExtension(sync->egl.display, "EGL_KHR_reusable_sync")) { + if (hasEGLExtension(sync->egl.display, "EGL_KHR_fence_sync")) { QOpenGLContext *context = QOpenGLContext::currentContext(); eglClientWaitSyncKHR = (PFNEGLCLIENTWAITSYNCKHRPROC)context->getProcAddress("eglClientWaitSyncKHR"); eglDestroySyncKHR = (PFNEGLDESTROYSYNCKHRPROC)context->getProcAddress("eglDestroySyncKHR"); -- cgit v1.2.1