Permalink
Browse files

Shutdown fix.

  • Loading branch information...
hrydgard committed Dec 3, 2017
1 parent 6abdbde commit 1bf44b7ca30101e9737f185355180b3447cb4d73
Showing with 5 additions and 5 deletions.
  1. +4 −5 Common/Vulkan/VulkanMemory.cpp
  2. +1 −0 GPU/Vulkan/GPU_Vulkan.cpp
@@ -169,11 +169,10 @@ void VulkanDeviceAllocator::Destroy() {
for (Slab &slab : slabs_) {
// Did anyone forget to free?
for (auto pair : slab.allocSizes) {
if (slab.usage[pair.first] != 2) {
// If it's not 2 (queued), there's a problem.
// If it's zero, it means allocSizes is somehow out of sync.
Crash();
}
int slabUsage = slab.usage[pair.first];
// If it's not 2 (queued), there's a problem.
// If it's zero, it means allocSizes is somehow out of sync.
_assert_msg_(G3D, slabUsage == 2, "Destroy: slabUsage has unexpected value %d", slabUsage);
}
assert(slab.deviceMemory);
@@ -168,6 +168,7 @@ GPU_Vulkan::~GPU_Vulkan() {
framebufferManagerVulkan_->DestroyAllFBOs();
vulkan2D_.Shutdown();
depalShaderCache_.Clear();
drawEngine_.DeviceLost();
delete textureCacheVulkan_;
delete pipelineManager_;
delete shaderManagerVulkan_;

0 comments on commit 1bf44b7

Please sign in to comment.