mirror of
https://github.com/overte-org/overte.git
synced 2025-08-06 00:40:06 +02:00
Fix KTX creation not handling invalid storage
This commit is contained in:
parent
0263021c0c
commit
2c19c5f045
1 changed files with 1 additions and 1 deletions
|
@ -174,7 +174,7 @@ namespace ktx {
|
||||||
}
|
}
|
||||||
|
|
||||||
std::unique_ptr<KTX> KTX::create(const StoragePointer& src) {
|
std::unique_ptr<KTX> KTX::create(const StoragePointer& src) {
|
||||||
if (!src) {
|
if (!src || !(*src)) {
|
||||||
return nullptr;
|
return nullptr;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue