From 9db7df1117c860b2303322150db7f0aecfef3c00 Mon Sep 17 00:00:00 2001 From: Jules Blok Date: Tue, 10 Apr 2018 19:49:27 +0200 Subject: [PATCH] Vulkan: Implement API typo fall-back. --- Remixed/REM_CAPI_Vk.cpp | 6 ++++++ Revive/REV_CAPI_Vk.cpp | 6 ++++++ 2 files changed, 12 insertions(+) diff --git a/Remixed/REM_CAPI_Vk.cpp b/Remixed/REM_CAPI_Vk.cpp index 9402953e..308d30c4 100644 --- a/Remixed/REM_CAPI_Vk.cpp +++ b/Remixed/REM_CAPI_Vk.cpp @@ -34,7 +34,13 @@ ovr_GetSessionPhysicalDeviceVk( return ovrError_Unsupported; } +#undef ovr_SetSynchonizationQueueVk OVR_PUBLIC_FUNCTION(ovrResult) ovr_SetSynchonizationQueueVk(ovrSession session, VkQueue queue) +{ + return ovr_SetSynchronizationQueueVk(session, queue); +} + +OVR_PUBLIC_FUNCTION(ovrResult) ovr_SetSynchronizationQueueVk(ovrSession session, VkQueue queue) { return ovrError_Unsupported; } diff --git a/Revive/REV_CAPI_Vk.cpp b/Revive/REV_CAPI_Vk.cpp index 6a8aea24..54664bf7 100644 --- a/Revive/REV_CAPI_Vk.cpp +++ b/Revive/REV_CAPI_Vk.cpp @@ -141,7 +141,13 @@ ovr_GetSessionPhysicalDeviceVk( return physicalDevice ? ovrSuccess : ovrError_MismatchedAdapters; } +#undef ovr_SetSynchonizationQueueVk OVR_PUBLIC_FUNCTION(ovrResult) ovr_SetSynchonizationQueueVk(ovrSession session, VkQueue queue) +{ + return ovr_SetSynchronizationQueueVk(session, queue); +} + +OVR_PUBLIC_FUNCTION(ovrResult) ovr_SetSynchronizationQueueVk(ovrSession session, VkQueue queue) { CompositorVk* compositor = dynamic_cast(session->Compositor.get());