Browse Source
Merge pull request #11646 from FernandoS27/stop-ignoring-your-mental-health
Query Cache: Fix memory leak.
pull/15/merge
Fernando S
2 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with
2 additions and
0 deletions
-
src/video_core/query_cache/bank_base.h
-
src/video_core/renderer_vulkan/vk_query_cache.cpp
|
|
|
@ -82,6 +82,7 @@ public: |
|
|
|
size_t new_index = bank_indices.front(); |
|
|
|
bank_indices.pop_front(); |
|
|
|
bank_pool[new_index].Reset(); |
|
|
|
bank_indices.push_back(new_index); |
|
|
|
return new_index; |
|
|
|
} |
|
|
|
size_t new_index = bank_pool.size(); |
|
|
|
|
|
|
|
@ -506,6 +506,7 @@ private: |
|
|
|
SetAccumulationValue(query->value); |
|
|
|
Free(index); |
|
|
|
}); |
|
|
|
rasterizer->SyncOperation(std::move(func)); |
|
|
|
} |
|
|
|
|
|
|
|
template <bool is_resolve> |
|
|
|
|