summaryrefslogtreecommitdiffstats
path: root/src/datavisualization/utils/texturehelper.cpp
diff options
context:
space:
mode:
authorTomi Korpipää <tomi.korpipaa@digia.com>2014-06-12 08:44:45 +0300
committerTomi Korpipää <tomi.korpipaa@digia.com>2014-06-12 08:47:44 +0300
commit9b50f3f7d49f57712517d1d05de69ec7495c13f9 (patch)
tree18c4cd3741af11a5e1994ae4a829ba34ad6d6627 /src/datavisualization/utils/texturehelper.cpp
parent8a372da705c71c1295a570564c0c7ef4c9698e42 (diff)
Texture power-of-two for ES2
Force power-of-2 for all ES2 devices instead of just Android and iOS. Change-Id: I6b64182f18b02153833776c82ce8378907443b85 Reviewed-by: Miikka Heikkinen <miikka.heikkinen@digia.com>
Diffstat (limited to 'src/datavisualization/utils/texturehelper.cpp')
-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 185d99e4..2a2a89dd 100644
--- a/src/datavisualization/utils/texturehelper.cpp
+++ b/src/datavisualization/utils/texturehelper.cpp
@@ -41,7 +41,7 @@ GLuint TextureHelper::create2DTexture(const QImage &image, bool useTrilinearFilt
QImage texImage = image;
-#if defined(Q_OS_ANDROID) || defined(Q_OS_IOS)
+#if defined(QT_OPENGL_ES_2)
GLuint temp;
GLuint imageWidth = Utils::getNearestPowerOfTwo(image.width(), temp);
GLuint imageHeight = Utils::getNearestPowerOfTwo(image.height(), temp);