From 4b5c9024175043ee6ad4b9066ee81f4774c3dcf6 Mon Sep 17 00:00:00 2001 From: Michal Klocek Date: Wed, 27 Jul 2016 19:51:10 +0200 Subject: Check if gpu fence is supported in pullTexture Task-number: QTBUG-53972 Change-Id: Ie722e40e4763c5a78ce566d03fec6877d64b2023 Reviewed-by: Allan Sandfeld Jensen --- src/core/delegated_frame_node.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/core/delegated_frame_node.cpp') diff --git a/src/core/delegated_frame_node.cpp b/src/core/delegated_frame_node.cpp index b181f04e3..d5fc459f5 100644 --- a/src/core/delegated_frame_node.cpp +++ b/src/core/delegated_frame_node.cpp @@ -789,7 +789,7 @@ void DelegatedFrameNode::pullTexture(DelegatedFrameNode *frameNode, MailboxTextu if (syncToken.HasData()) mailboxManager->PullTextureUpdates(syncToken); texture->fetchTexture(mailboxManager); - if (!!gfx::GLContext::GetCurrent()) { + if (!!gfx::GLContext::GetCurrent() && gfx::GLFence::IsSupported()) { // Create a fence on the Chromium GPU-thread and context gfx::GLFence *fence = gfx::GLFence::Create(); // But transfer it to something generic since we need to read it using Qt's OpenGL. -- cgit v1.2.3