aboutsummaryrefslogtreecommitdiffstats
path: root/src/quick/scenegraph/util/qsgatlastexture.cpp
diff options
context:
space:
mode:
authorMike Krus <mike.krus@kdab.com>2015-12-27 21:47:40 +0000
committerMike Krus <mike.krus@kdab.com>2016-01-01 18:16:20 +0000
commitfa0e902b4b1c938f59c7fdf9bdfbd464f55e766f (patch)
treee53902c9c7abe8ad12e4cfa806deb86bd9b43ec7 /src/quick/scenegraph/util/qsgatlastexture.cpp
parent893a4ffd6476a11597f9dd3c847fe3db4bf38eed (diff)
tvOS support
Change-Id: If48e8bcf55781d1148e15ce19e07cfbe35d829d2 Reviewed-by: Sean Harmer <sean.harmer@kdab.com> Reviewed-by: Jake Petroules <jake.petroules@theqtcompany.com>
Diffstat (limited to 'src/quick/scenegraph/util/qsgatlastexture.cpp')
-rw-r--r--src/quick/scenegraph/util/qsgatlastexture.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/quick/scenegraph/util/qsgatlastexture.cpp b/src/quick/scenegraph/util/qsgatlastexture.cpp
index 8e8e870505..548d57ce00 100644
--- a/src/quick/scenegraph/util/qsgatlastexture.cpp
+++ b/src/quick/scenegraph/util/qsgatlastexture.cpp
@@ -155,11 +155,11 @@ Atlas::Atlas(const QSize &size)
|| strstr(ext, "GL_EXT_texture_format_BGRA8888")
|| strstr(ext, "GL_IMG_texture_format_BGRA8888"))) {
m_internalFormat = m_externalFormat = GL_BGRA;
-#ifdef Q_OS_IOS
+#if defined(Q_OS_DARWIN) && !defined(Q_OS_OSX)
} else if (strstr(ext, "GL_APPLE_texture_format_BGRA8888")) {
m_internalFormat = GL_RGBA;
m_externalFormat = GL_BGRA;
-#endif // IOS
+#endif // IOS || TVOS
} else {
m_internalFormat = m_externalFormat = GL_RGBA;
}