summaryrefslogtreecommitdiffstats
path: root/src/render/io/gltfparser.cpp
diff options
context:
space:
mode:
authorPaul Lemire <paul.lemire@kdab.com>2014-08-19 09:10:48 +0200
committerSean Harmer <sean.harmer@kdab.com>2014-08-19 13:02:24 +0200
commit977863dd3e6a7a40f60db1f9777500d21762d404 (patch)
treed92528dc48b958b2d8640b125ec51fa41982aeeb /src/render/io/gltfparser.cpp
parent4c1f45cc53acb85b687d656fd70af02119b88f0f (diff)
Texture subclass of QNode
Change-Id: I0b6f3a6e4dfa75ce1cc29ee38bb709b8bad6a88f Reviewed-by: Sean Harmer <sean.harmer@kdab.com>
Diffstat (limited to 'src/render/io/gltfparser.cpp')
-rw-r--r--src/render/io/gltfparser.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/render/io/gltfparser.cpp b/src/render/io/gltfparser.cpp
index eff6a90d7..0e39da1b6 100644
--- a/src/render/io/gltfparser.cpp
+++ b/src/render/io/gltfparser.cpp
@@ -782,7 +782,7 @@ void GLTFParser::processJSONTexture( QString id, QJsonObject jsonObj)
//int internalFormat = jsonObj.value(KEY_INTERNAL_FORMAT).toInt();
tex->setTarget(static_cast<Texture::Target>(target));
- tex->setInternalFormat(Texture::RGBA8_UNorm /* static_cast<QOpenGLTexture::TextureFormat>(internalFormat)*/);
+ tex->setFormat(Texture::RGBA8_UNorm /* static_cast<QOpenGLTexture::TextureFormat>(internalFormat)*/);
QString samplerId = jsonObj.value(KEY_SAMPLER).toString();
QString source = jsonObj.value(KEY_SOURCE).toString();