@@ -0,0 +1,29 @@
|
||||
From 4746bb904bf6841137d5b50357bf79c852bf5d06 Mon Sep 17 00:00:00 2001
|
||||
From: =?UTF-8?q?J=C3=BCri=20Valdmann?= <juri.valdmann@qt.io>
|
||||
Date: Thu, 4 Jul 2019 15:38:05 +0200
|
||||
Subject: Null check result of consuming mailbox texture
|
||||
|
||||
Fixes: QTBUG-76913
|
||||
Change-Id: Ib036121f366d037d507f59bf31c3ab9c79bfea5e
|
||||
Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
|
||||
---
|
||||
src/core/compositor/compositor_resource_tracker.cpp | 3 ++-
|
||||
1 file changed, 2 insertions(+), 1 deletion(-)
|
||||
|
||||
diff --git a/src/core/compositor/compositor_resource_tracker.cpp b/src/core/compositor/compositor_resource_tracker.cpp
|
||||
index 73242c69..741c2717 100644
|
||||
--- a/src/core/compositor/compositor_resource_tracker.cpp
|
||||
+++ b/src/core/compositor/compositor_resource_tracker.cpp
|
||||
@@ -174,7 +174,8 @@ quint32 CompositorResourceTracker::consumeMailbox(const gpu::MailboxHolder &mail
|
||||
DCHECK(mailboxManager);
|
||||
if (mailboxHolder.sync_token.HasData())
|
||||
mailboxManager->PullTextureUpdates(mailboxHolder.sync_token);
|
||||
- return service_id(mailboxManager->ConsumeTexture(mailboxHolder.mailbox));
|
||||
+ gpu::TextureBase *tex = mailboxManager->ConsumeTexture(mailboxHolder.mailbox);
|
||||
+ return tex ? service_id(tex) : 0;
|
||||
#else
|
||||
NOTREACHED();
|
||||
#endif // QT_CONFIG(OPENGL)
|
||||
--
|
||||
cgit v1.2.1
|
||||
|
||||
@@ -74,7 +74,7 @@
|
||||
<Dependency>poppler-cpp-devel</Dependency>
|
||||
</BuildDependencies>
|
||||
<Patches>
|
||||
<!-- <Patch level="1">qtwebengine-harmony.patch</Patch> -->
|
||||
<Patch level="1">qtbug-76913.patch</Patch>
|
||||
<!-- <Patch level="1">qtbug-71370.patch</Patch> -->
|
||||
<!-- <Patch level="1">qtbug-69605.patch</Patch> -->
|
||||
</Patches>
|
||||
|
||||
Reference in New Issue
Block a user