diff options
author | Mike Krus <[email protected]> | 2015-12-27 21:47:40 +0000 |
---|---|---|
committer | Mike Krus <[email protected]> | 2016-01-01 18:16:20 +0000 |
commit | fa0e902b4b1c938f59c7fdf9bdfbd464f55e766f (patch) | |
tree | e53902c9c7abe8ad12e4cfa806deb86bd9b43ec7 /src/quick/scenegraph/util/qsgatlastexture.cpp | |
parent | 893a4ffd6476a11597f9dd3c847fe3db4bf38eed (diff) |
tvOS support
Change-Id: If48e8bcf55781d1148e15ce19e07cfbe35d829d2
Reviewed-by: Sean Harmer <[email protected]>
Reviewed-by: Jake Petroules <[email protected]>
Diffstat (limited to 'src/quick/scenegraph/util/qsgatlastexture.cpp')
-rw-r--r-- | src/quick/scenegraph/util/qsgatlastexture.cpp | 4 |
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; } |