mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-07-15 11:18:36 +12:00
vk: Fix null deref in texture cache when dumping temporary storage
This commit is contained in:
parent
d53f2f10fb
commit
b7df539871
1 changed files with 5 additions and 0 deletions
|
@ -1115,6 +1115,11 @@ namespace vk
|
||||||
|
|
||||||
for (auto& entry : m_temporary_storage)
|
for (auto& entry : m_temporary_storage)
|
||||||
{
|
{
|
||||||
|
if (!entry.combined_image)
|
||||||
|
{
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
|
||||||
actual_released_memory += entry.combined_image->memory->size();
|
actual_released_memory += entry.combined_image->memory->size();
|
||||||
gc->dispose(entry.combined_image);
|
gc->dispose(entry.combined_image);
|
||||||
m_temporary_memory_size -= entry.block_size;
|
m_temporary_memory_size -= entry.block_size;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue