diff --git a/Hydrogent/src/HnTextureRegistry.cpp b/Hydrogent/src/HnTextureRegistry.cpp index e1449dca..7ef73d34 100644 --- a/Hydrogent/src/HnTextureRegistry.cpp +++ b/Hydrogent/src/HnTextureRegistry.cpp @@ -167,7 +167,7 @@ HnTextureRegistry::TextureHandleSharedPtr HnTextureRegistry::Allocate(const HnTe } } - if (TexHandle) + if (!TexHandle->pTexture) { std::lock_guard Lock{m_PendingTexturesMtx}; m_PendingTextures.emplace(TexId.FilePath, PendingTextureInfo{std::move(pLoader), SamDesc, TexHandle});