You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
16 lines
724 B
16 lines
724 B
6 years ago
|
--- qtdeclarative-opensource-src-5.4.2/src/quick/items/qquickshadereffectsource.cpp 2015-06-30 07:30:51.938794778 +0200
|
||
|
+++ qtdeclarative-opensource-src-5.4.2/src/quick/items/qquickshadereffectsource.cpp.orig 2015-06-30 07:29:47.019163937 +0200
|
||
|
@@ -632,8 +632,12 @@
|
||
|
|
||
|
const QSize minTextureSize = d->sceneGraphContext()->minimumFBOSize();
|
||
|
// Keep power-of-two by doubling the size.
|
||
|
+ if (textureSize.width() < 1)
|
||
|
+ textureSize.rwidth() = 1;
|
||
|
while (textureSize.width() < minTextureSize.width())
|
||
|
textureSize.rwidth() *= 2;
|
||
|
+ if (textureSize.height() < 1)
|
||
|
+ textureSize.rheight() = 1;
|
||
|
while (textureSize.height() < minTextureSize.height())
|
||
|
textureSize.rheight() *= 2;
|
||
|
|