summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTomi Korpipää <tomi.korpipaa@digia.com>2014-10-31 13:08:42 +0200
committerTomi Korpipää <tomi.korpipaa@digia.com>2014-10-31 13:11:15 +0200
commit8cebfaed9071b67cc58755fbcade70c88de60529 (patch)
tree809e44f7b23349c477212b43f66129b0015a6101
parent89911624cf0d8726ee594d5b689881990592e09b (diff)
Fixed surface slice problem
Task-number: QTRD-3402 Change-Id: I70ef641fc7249b144d6e98971f1fb74f2935d706 Reviewed-by: Mika Salmela <mika.salmela@theqtcompany.com>
-rw-r--r--src/datavisualization/utils/texturehelper.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/datavisualization/utils/texturehelper.cpp b/src/datavisualization/utils/texturehelper.cpp
index 3944fb0c..16396de7 100644
--- a/src/datavisualization/utils/texturehelper.cpp
+++ b/src/datavisualization/utils/texturehelper.cpp
@@ -58,7 +58,7 @@ GLuint TextureHelper::create2DTexture(const QImage &image, bool useTrilinearFilt
QImage texImage = image;
- if (!Utils::isOpenGLES()) {
+ if (Utils::isOpenGLES()) {
GLuint imageWidth = Utils::getNearestPowerOfTwo(image.width());
GLuint imageHeight = Utils::getNearestPowerOfTwo(image.height());
if (smoothScale) {