mirror of
https://github.com/libretro/RetroArch
synced 2025-04-18 05:43:34 +00:00
Vulkan: Fix VSync toggling on Windows.
Retarded bug, but haven't actually had access to a Windows machine until now.
This commit is contained in:
parent
a5222c4ce0
commit
4c99809cde
@ -1457,6 +1457,8 @@ static bool vulkan_context_init_device(gfx_ctx_vulkan_data_t *vk)
|
|||||||
vkGetPhysicalDeviceMemoryProperties(vk->context.gpu,
|
vkGetPhysicalDeviceMemoryProperties(vk->context.gpu,
|
||||||
&vk->context.memory_properties);
|
&vk->context.memory_properties);
|
||||||
|
|
||||||
|
RARCH_LOG("[Vulkan]: Using GPU: %s\n", vk->context.gpu_properties.deviceName);
|
||||||
|
|
||||||
if (vk->context.device == VK_NULL_HANDLE)
|
if (vk->context.device == VK_NULL_HANDLE)
|
||||||
{
|
{
|
||||||
VkQueueFamilyProperties *queue_properties = NULL;
|
VkQueueFamilyProperties *queue_properties = NULL;
|
||||||
|
@ -276,12 +276,12 @@ void *dinput_wgl;
|
|||||||
static void gfx_ctx_wgl_swap_interval(void *data, unsigned interval)
|
static void gfx_ctx_wgl_swap_interval(void *data, unsigned interval)
|
||||||
{
|
{
|
||||||
(void)data;
|
(void)data;
|
||||||
win32_interval = interval;
|
|
||||||
|
|
||||||
switch (win32_api)
|
switch (win32_api)
|
||||||
{
|
{
|
||||||
case GFX_CTX_OPENGL_API:
|
case GFX_CTX_OPENGL_API:
|
||||||
#ifdef HAVE_OPENGL
|
#ifdef HAVE_OPENGL
|
||||||
|
win32_interval = interval;
|
||||||
if (!win32_hrc)
|
if (!win32_hrc)
|
||||||
return;
|
return;
|
||||||
if (!p_swap_interval)
|
if (!p_swap_interval)
|
||||||
@ -306,6 +306,7 @@ static void gfx_ctx_wgl_swap_interval(void *data, unsigned interval)
|
|||||||
|
|
||||||
case GFX_CTX_NONE:
|
case GFX_CTX_NONE:
|
||||||
default:
|
default:
|
||||||
|
win32_interval = interval;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user