From b3c8274a80919d768dc8d3653720fc4150a9aeec Mon Sep 17 00:00:00 2001 From: ahmedmoselhi Date: Tue, 11 Apr 2023 16:17:12 +0200 Subject: [PATCH] fix build error: duplicate case value: 'SDL_SYSWM_X11' and 'WINDOWSYSTEM_DISPLAY' both equal '2' --- SDL/SDLVulkanGraphicsContext.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/SDL/SDLVulkanGraphicsContext.cpp b/SDL/SDLVulkanGraphicsContext.cpp index df59fd20c1..608ad3dbbd 100644 --- a/SDL/SDLVulkanGraphicsContext.cpp +++ b/SDL/SDLVulkanGraphicsContext.cpp @@ -112,7 +112,7 @@ bool SDLVulkanGraphicsContext::Init(SDL_Window *&window, int x, int y, int w, in #endif #endif #if defined(VK_USE_PLATFORM_DISPLAY_KHR) - case WINDOWSYSTEM_DISPLAY: + case SDL_SYSWM_KMSDRM: /* There is no problem passing null for the next two arguments, and reinit will be called later huangzihan china