Skip to content

Commit c419fc9

Browse files
committed
GPU Display: Use 1-argument Vulkan loader which might be compatible to more Vulkan implementations
1 parent 79f1117 commit c419fc9

File tree

2 files changed

+6
-11
lines changed

2 files changed

+6
-11
lines changed

GPU/GPUTracking/display/backend/GPUDisplayBackendOpenGL.cxx

Lines changed: 5 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -61,28 +61,23 @@ GPUDisplayBackendOpenGL::GPUDisplayBackendOpenGL()
6161
mBackendName = "OpenGL";
6262
}
6363

64-
#ifdef GPUCA_DISPLAY_GL3W
6564
int32_t GPUDisplayBackendOpenGL::ExtInit()
6665
{
66+
#ifdef GPUCA_DISPLAY_GL3W
6767
return gl3wInit();
68-
}
6968
#else
70-
int32_t GPUDisplayBackendOpenGL::ExtInit()
71-
{
7269
return glewInit();
73-
}
7470
#endif
75-
#ifdef GPUCA_DISPLAY_OPENGL_CORE
71+
}
72+
7673
bool GPUDisplayBackendOpenGL::CoreProfile()
7774
{
75+
#ifdef GPUCA_DISPLAY_OPENGL_CORE
7876
return true;
79-
}
8077
#else
81-
bool GPUDisplayBackendOpenGL::CoreProfile()
82-
{
8378
return false;
84-
}
8579
#endif
80+
}
8681

8782
// #define CHKERR(cmd) {cmd;}
8883
#define CHKERR(cmd) \

GPU/GPUTracking/display/backend/GPUDisplayBackendVulkan.cxx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -340,7 +340,7 @@ double GPUDisplayBackendVulkan::checkDevice(vk::PhysicalDevice device, const std
340340

341341
void GPUDisplayBackendVulkan::createDevice()
342342
{
343-
VULKAN_HPP_DEFAULT_DISPATCHER.init();
343+
VULKAN_HPP_DEFAULT_DISPATCHER.init(vkGetInstanceProcAddr);
344344
vk::ApplicationInfo appInfo{};
345345
appInfo.pApplicationName = "GPU CA Standalone display";
346346
appInfo.applicationVersion = VK_MAKE_VERSION(1, 0, 0);

0 commit comments

Comments
 (0)