Blame 0008-Fix-crash-when-Canvas-has-negative-width-or-height.patch
|
Rex Dieter |
5187332 |
From 9783991b615484d2926e9648b10ea090af81d93f Mon Sep 17 00:00:00 2001
|
|
Rex Dieter |
5187332 |
From: Mitch Curtis <mitch.curtis@theqtcompany.com>
|
|
Rex Dieter |
5187332 |
Date: Wed, 3 Feb 2016 12:57:05 +0100
|
|
Rex Dieter |
5187332 |
Subject: [PATCH 08/61] Fix crash when Canvas has negative width or height
|
|
Rex Dieter |
5187332 |
|
|
Rex Dieter |
5187332 |
m_fbo is null when using a threaded render loop.
|
|
Rex Dieter |
5187332 |
|
|
Rex Dieter |
5187332 |
Change-Id: I297ba651f9605f1718dbe9d09bd30e9682fb8401
|
|
Rex Dieter |
5187332 |
Task-number: QTBUG-50085
|
|
Rex Dieter |
5187332 |
Reviewed-by: Laszlo Agocs <laszlo.agocs@theqtcompany.com>
|
|
Rex Dieter |
5187332 |
---
|
|
Rex Dieter |
5187332 |
src/quick/items/context2d/qquickcontext2dtexture.cpp | 5 +++++
|
|
Rex Dieter |
5187332 |
1 file changed, 5 insertions(+)
|
|
Rex Dieter |
5187332 |
|
|
Rex Dieter |
5187332 |
diff --git a/src/quick/items/context2d/qquickcontext2dtexture.cpp b/src/quick/items/context2d/qquickcontext2dtexture.cpp
|
|
Rex Dieter |
5187332 |
index 73b0b55..5ac971d 100644
|
|
Rex Dieter |
5187332 |
--- a/src/quick/items/context2d/qquickcontext2dtexture.cpp
|
|
Rex Dieter |
5187332 |
+++ b/src/quick/items/context2d/qquickcontext2dtexture.cpp
|
|
Rex Dieter |
5187332 |
@@ -599,6 +599,11 @@ QPaintDevice* QQuickContext2DFBOTexture::beginPainting()
|
|
Rex Dieter |
5187332 |
void QQuickContext2DFBOTexture::endPainting()
|
|
Rex Dieter |
5187332 |
{
|
|
Rex Dieter |
5187332 |
QQuickContext2DTexture::endPainting();
|
|
Rex Dieter |
5187332 |
+
|
|
Rex Dieter |
5187332 |
+ // There may not be an FBO due to zero width or height.
|
|
Rex Dieter |
5187332 |
+ if (!m_fbo)
|
|
Rex Dieter |
5187332 |
+ return;
|
|
Rex Dieter |
5187332 |
+
|
|
Rex Dieter |
5187332 |
if (m_multisampledFbo)
|
|
Rex Dieter |
5187332 |
QOpenGLFramebufferObject::blitFramebuffer(m_fbo, m_multisampledFbo);
|
|
Rex Dieter |
5187332 |
|
|
Rex Dieter |
5187332 |
--
|
|
Rex Dieter |
5187332 |
1.9.3
|
|
Rex Dieter |
5187332 |
|