Skip to content

Commit

Permalink
Vulkan: Implement API typo fall-back.
Browse files Browse the repository at this point in the history
  • Loading branch information
CrossVR committed Apr 10, 2018
1 parent 595cde0 commit 9db7df1
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
6 changes: 6 additions & 0 deletions Remixed/REM_CAPI_Vk.cpp
Expand Up @@ -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;
}
Expand Down
6 changes: 6 additions & 0 deletions Revive/REV_CAPI_Vk.cpp
Expand Up @@ -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<CompositorVk*>(session->Compositor.get());

Expand Down

0 comments on commit 9db7df1

Please sign in to comment.