From ec983a245100eee028344391029adc5c2aac7848 Mon Sep 17 00:00:00 2001 From: ReinUsesLisp Date: Thu, 19 Dec 2019 02:14:52 -0300 Subject: vk_reosurce_manager: Add assert for releasing fences Notify the programmer when a request to release a fence is invalid because the fence is already free. --- src/video_core/renderer_vulkan/vk_resource_manager.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'src') diff --git a/src/video_core/renderer_vulkan/vk_resource_manager.cpp b/src/video_core/renderer_vulkan/vk_resource_manager.cpp index aa145de5c..525b4bb46 100644 --- a/src/video_core/renderer_vulkan/vk_resource_manager.cpp +++ b/src/video_core/renderer_vulkan/vk_resource_manager.cpp @@ -87,6 +87,7 @@ void VKFence::Wait() { } void VKFence::Release() { + ASSERT(is_owned); is_owned = false; } -- cgit v1.2.3