mirror of
https://github.com/overte-org/overte.git
synced 2025-08-09 14:08:51 +02:00
Fix KTX compile errors
This commit is contained in:
parent
5b1cd5443d
commit
de564d92b9
3 changed files with 4 additions and 4 deletions
|
@ -77,7 +77,7 @@ KTX::KTX() {
|
||||||
KTX::~KTX() {
|
KTX::~KTX() {
|
||||||
}
|
}
|
||||||
|
|
||||||
void KTX::resetStorage(StoragePointer& storage) {
|
void KTX::resetStorage(const StoragePointer& storage) {
|
||||||
_storage = storage;
|
_storage = storage;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -420,7 +420,7 @@ namespace ktx {
|
||||||
using Images = std::vector<Image>;
|
using Images = std::vector<Image>;
|
||||||
|
|
||||||
class KTX {
|
class KTX {
|
||||||
void resetStorage(StoragePointer& src);
|
void resetStorage(const StoragePointer& src);
|
||||||
|
|
||||||
KTX();
|
KTX();
|
||||||
public:
|
public:
|
||||||
|
@ -448,7 +448,7 @@ namespace ktx {
|
||||||
static Images writeImages(Byte* destBytes, size_t destByteSize, const Images& images);
|
static Images writeImages(Byte* destBytes, size_t destByteSize, const Images& images);
|
||||||
|
|
||||||
// Parse a block of memory and create a KTX object from it
|
// Parse a block of memory and create a KTX object from it
|
||||||
static std::unique_ptr<KTX> create(StoragePointer& src);
|
static std::unique_ptr<KTX> create(const StoragePointer& src);
|
||||||
|
|
||||||
static bool checkHeaderFromStorage(size_t srcSize, const Byte* srcBytes);
|
static bool checkHeaderFromStorage(size_t srcSize, const Byte* srcBytes);
|
||||||
static Images parseImages(const Header& header, size_t srcSize, const Byte* srcBytes);
|
static Images parseImages(const Header& header, size_t srcSize, const Byte* srcBytes);
|
||||||
|
|
|
@ -163,7 +163,7 @@ namespace ktx {
|
||||||
return images;
|
return images;
|
||||||
}
|
}
|
||||||
|
|
||||||
std::unique_ptr<KTX> KTX::create(StoragePointer& src) {
|
std::unique_ptr<KTX> KTX::create(const StoragePointer& src) {
|
||||||
if (!src) {
|
if (!src) {
|
||||||
return nullptr;
|
return nullptr;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue