summaryrefslogtreecommitdiffstats
path: root/src/core/delegated_frame_node.cpp
diff options
context:
space:
mode:
authorMichal Klocek <michal.klocek@theqtcompany.com>2016-07-27 19:51:10 +0200
committerAllan Sandfeld Jensen <allan.jensen@qt.io>2016-08-09 08:12:02 +0000
commit4b5c9024175043ee6ad4b9066ee81f4774c3dcf6 (patch)
treef2258b7ee930a4f9cafc4c123451288de7af4b9d /src/core/delegated_frame_node.cpp
parent06a797879c6e2354afbcd54ee000c07a6a8f935e (diff)
Check if gpu fence is supported in pullTexture
Task-number: QTBUG-53972 Change-Id: Ie722e40e4763c5a78ce566d03fec6877d64b2023 Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
Diffstat (limited to 'src/core/delegated_frame_node.cpp')
-rw-r--r--src/core/delegated_frame_node.cpp2
1 files changed, 1 insertions, 1 deletions
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.