2
1
Fork 0
mirror of https://github.com/yuzu-emu/yuzu.git synced 2024-07-04 23:31:19 +01:00

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.
This commit is contained in:
ReinUsesLisp 2019-12-19 02:14:52 -03:00
parent 6ddffa010a
commit ec983a2451
No known key found for this signature in database
GPG key ID: 2DFC508897B39CFE

View file

@ -87,6 +87,7 @@ void VKFence::Wait() {
} }
void VKFence::Release() { void VKFence::Release() {
ASSERT(is_owned);
is_owned = false; is_owned = false;
} }