TeamWisp/WispRenderer

~D3D12TexturePool() unloads unstaged textures

sainsay opened this issue · 2 comments

Describe the bug
During deconstruction of D3D12TexturePool. Unstaged textures are unloaded. Code crashes on nullptr.

To Reproduce
Deconstruct D3D12TexturePool while having unstaged textures.

Expected behaviour
unstaged textures do not have to be unloaded at all.

Additional context
file: d3d12_resource_pool_texture.cpp: L98 - L101

Hasn't occurred in a while, might have been fixed since refactoring the texture pool

VZout commented

I believe this is fixed as well. Closing for now.