summaryrefslogtreecommitdiffstats
path: root/src/core
diff options
context:
space:
mode:
authorZoltan Arvai <zarvai@inf.u-szeged.hu>2014-04-11 14:00:01 +0200
committerThe Qt Project <gerrit-noreply@qt-project.org>2014-04-11 14:55:58 +0200
commitaff45885400cd068fbf438a941736841e41607b4 (patch)
tree9da81cb37d653a81370974519e1ee00cc3cc8e93 /src/core
parent682ddcd7187b16723af66d7f9c1b61bc060f44c1 (diff)
Buildfix for Windows
You cannot jump past a declaration with an initializer unless the declaration is enclosed in a block. See MSDN compiler error C2360. Change-Id: I692b0f256decf70b6153703ff59f74596cfc2861 Reviewed-by: Michael Bruning <michael.bruning@digia.com>
Diffstat (limited to 'src/core')
-rw-r--r--src/core/delegated_frame_node.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/core/delegated_frame_node.cpp b/src/core/delegated_frame_node.cpp
index 608d0b63a..9353f4402 100644
--- a/src/core/delegated_frame_node.cpp
+++ b/src/core/delegated_frame_node.cpp
@@ -220,6 +220,7 @@ static void waitAndDeleteChromiumSync(FenceSync *sync)
break;
case FenceSync::EglSync:
#ifdef EGL_KHR_reusable_sync
+ {
static bool resolved = false;
static PFNEGLCLIENTWAITSYNCKHRPROC eglClientWaitSyncKHR = 0;
static PFNEGLDESTROYSYNCKHRPROC eglDestroySyncKHR = 0;
@@ -235,6 +236,7 @@ static void waitAndDeleteChromiumSync(FenceSync *sync)
eglClientWaitSyncKHR(sync->egl.display, sync->egl.sync, 0, EGL_FOREVER_KHR);
eglDestroySyncKHR(sync->egl.display, sync->egl.sync);
sync->reset();
+ }
#endif
break;
case FenceSync::ArbSync: