Merge pull request #15468 from unknownbrackets/switch-merge

Cleanup Switch ignoring of Vulkan
This commit is contained in:
Henrik Rydgård 2022-04-08 14:48:04 +02:00 committed by GitHub
commit 0eea0acf13
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
8 changed files with 63 additions and 53 deletions

View file

@ -741,6 +741,7 @@ int main(int argc, char *argv[]) {
printf("GL init error '%s'\n", error_message.c_str());
}
graphicsContext = ctx;
#if !PPSSPP_PLATFORM(SWITCH)
} else if (g_Config.iGPUBackend == (int)GPUBackend::VULKAN) {
SDLVulkanGraphicsContext *ctx = new SDLVulkanGraphicsContext();
if (!ctx->Init(window, x, y, mode, &error_message)) {
@ -754,6 +755,7 @@ int main(int argc, char *argv[]) {
} else {
graphicsContext = ctx;
}
#endif
}
bool useEmuThread = g_Config.iGPUBackend == (int)GPUBackend::OPENGL;