From 8cebfaed9071b67cc58755fbcade70c88de60529 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tomi=20Korpipa=CC=88a=CC=88?= Date: Fri, 31 Oct 2014 13:08:42 +0200 Subject: Fixed surface slice problem Task-number: QTRD-3402 Change-Id: I70ef641fc7249b144d6e98971f1fb74f2935d706 Reviewed-by: Mika Salmela --- src/datavisualization/utils/texturehelper.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/datavisualization/utils') 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) { -- cgit v1.2.3