Blame qtdeclarative-QQuickShaderEffectSource_deadlock.patch
|
Rex Dieter |
81c710d |
--- qtdeclarative-opensource-src-5.4.2/src/quick/items/qquickshadereffectsource.cpp 2015-06-30 07:30:51.938794778 +0200
|
|
Rex Dieter |
81c710d |
+++ qtdeclarative-opensource-src-5.4.2/src/quick/items/qquickshadereffectsource.cpp.orig 2015-06-30 07:29:47.019163937 +0200
|
|
Rex Dieter |
81c710d |
@@ -632,8 +632,12 @@
|
|
Rex Dieter |
81c710d |
|
|
Rex Dieter |
81c710d |
const QSize minTextureSize = d->sceneGraphContext()->minimumFBOSize();
|
|
Rex Dieter |
81c710d |
// Keep power-of-two by doubling the size.
|
|
Rex Dieter |
81c710d |
+ if (textureSize.width() < 1)
|
|
Rex Dieter |
81c710d |
+ textureSize.rwidth() = 1;
|
|
Rex Dieter |
81c710d |
while (textureSize.width() < minTextureSize.width())
|
|
Rex Dieter |
81c710d |
textureSize.rwidth() *= 2;
|
|
Rex Dieter |
81c710d |
+ if (textureSize.height() < 1)
|
|
Rex Dieter |
81c710d |
+ textureSize.rheight() = 1;
|
|
Rex Dieter |
81c710d |
while (textureSize.height() < minTextureSize.height())
|
|
Rex Dieter |
81c710d |
textureSize.rheight() *= 2;
|
|
Rex Dieter |
81c710d |
|