mirror of
https://github.com/overte-org/overte.git
synced 2025-04-08 21:33:00 +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) {
|
||||
if (!src) {
|
||||
if (!src || !(*src)) {
|
||||
return nullptr;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue