summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndras Becsi <andras.becsi@digia.com>2014-06-23 14:32:57 +0200
committerAndras Becsi <andras.becsi@digia.com>2014-06-23 17:45:23 +0200
commit95cc7dd358e6916f4caf2891ff0a46935ec56dbb (patch)
treeb0419babb36015561b26c318f37012544319d108
parent0c3da38c16a82a57dcf8e646210b10a8bb15915f (diff)
downloadqtwebengine-95cc7dd358e6916f4caf2891ff0a46935ec56dbb.tar.gz
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 <jocelyn.turcotte@digia.com>
-rw-r--r--src/core/delegated_frame_node.cpp4
1 files 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");