From b2bcd889f0e3d8af466214bc74e044525e43254f Mon Sep 17 00:00:00 2001 From: Alessandro Toia Date: Fri, 6 Jan 2023 21:55:33 -0800 Subject: [PATCH] Skip OpenGL impl if vulkan is loaded togther with zink or wined3d. --- src/gl/gl_hud.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/gl/gl_hud.cpp b/src/gl/gl_hud.cpp index 17917100..cba50d84 100644 --- a/src/gl/gl_hud.cpp +++ b/src/gl/gl_hud.cpp @@ -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; }