Skip to content

Commit

Permalink
HnTextureRegistry: fixed texture initialization without atlas
Browse files Browse the repository at this point in the history
  • Loading branch information
TheMostDiligent committed Nov 23, 2023
1 parent 44aef33 commit a509e36
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Hydrogent/src/HnTextureRegistry.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ HnTextureRegistry::TextureHandleSharedPtr HnTextureRegistry::Allocate(const HnTe
}
}

if (TexHandle)
if (!TexHandle->pTexture)
{
std::lock_guard<std::mutex> Lock{m_PendingTexturesMtx};
m_PendingTextures.emplace(TexId.FilePath, PendingTextureInfo{std::move(pLoader), SamDesc, TexHandle});
Expand Down

0 comments on commit a509e36

Please sign in to comment.