Fix initalization order warnings in KTX.h and TextureCache.cpp

This commit is contained in:
Ryan Huffman 2017-04-20 23:38:22 -07:00 committed by Atlante45
parent 790290f40c
commit 5901ab6381
2 changed files with 3 additions and 3 deletions

View file

@ -419,8 +419,8 @@ namespace ktx {
// This is the byte offset from the _start_ of the image region. For example, level 0
// will have a byte offset of 0.
const uint32_t _imageOffset;
const uint32_t _numFaces;
const uint32_t _imageOffset;
const uint32_t _imageSize;
const uint32_t _faceSize;
const uint32_t _padding;

View file

@ -272,8 +272,8 @@ QSharedPointer<Resource> TextureCache::createResource(const QUrl& url, const QSh
NetworkTexture::NetworkTexture(const QUrl& url, image::TextureUsage::Type type, const QByteArray& content, int maxNumPixels) :
Resource(url),
_type(type),
_maxNumPixels(maxNumPixels),
_sourceIsKTX(url.path().endsWith(".ktx"))
_sourceIsKTX(url.path().endsWith(".ktx")),
_maxNumPixels(maxNumPixels)
{
_textureSource = std::make_shared<gpu::TextureSource>();