mirror of
https://github.com/overte-org/overte.git
synced 2025-04-07 16:34:17 +02:00
Fix initalization order warnings in KTX.h and TextureCache.cpp
This commit is contained in:
parent
790290f40c
commit
5901ab6381
2 changed files with 3 additions and 3 deletions
|
@ -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;
|
||||
|
|
|
@ -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>();
|
||||
|
||||
|
|
Loading…
Reference in a new issue