diff options
author | Paul Lemire <paul.lemire@kdab.com> | 2014-08-19 09:10:48 +0200 |
---|---|---|
committer | Sean Harmer <sean.harmer@kdab.com> | 2014-08-19 13:02:24 +0200 |
commit | 977863dd3e6a7a40f60db1f9777500d21762d404 (patch) | |
tree | d92528dc48b958b2d8640b125ec51fa41982aeeb /src/render/io/gltfparser.cpp | |
parent | 4c1f45cc53acb85b687d656fd70af02119b88f0f (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.cpp | 2 |
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(); |