Skip OpenGL impl if vulkan is loaded togther with zink or wined3d.

pull/890/head
Alessandro Toia 1 year ago
parent e3995ffcbf
commit b2bcd889f0

@ -108,8 +108,8 @@ void imgui_create(void *ctx)
imgui_shutdown();
imgui_init();
inited = true;
// if using vulkan return, fixes issues with ZINK and multiple games using DXVK
if (lib_loaded("libvulkan.so")) {
// if using vulkan skip OpenGL impl, fixes issues with ZINK and multiple games using DXVK
if (lib_loaded("libvulkan.so") && (sw_stats.engine == ZINK || sw_stats.engine == WINED3D)) {
SPDLOG_INFO("libvulkan is loaded, skipping OPENGL");
return;
}

Loading…
Cancel
Save