Added SDL_HINT_VULKAN_DISPLAY
This commit is contained in:
1 parent
997df06320
commit
3669d1e76a
2 files changed
+12
-1
No files matched your search
@@ -209,7 +209,7 @@ int SDL_Vulkan_Display_CreateSurface(void *vkGetInstanceProcAddr_,
|
||||
SDL_SetError(VK_KHR_DISPLAY_EXTENSION_NAME " extension is not enabled in the Vulkan instance.");
|
||||
goto error;
|
||||
}
|
||||
chosenDisplayId = SDL_getenv("SDL_VULKAN_DISPLAY");
|
||||
chosenDisplayId = SDL_GetHint(SDL_HINT_VULKAN_DISPLAY);
|
||||
if (chosenDisplayId) {
|
||||
displayId = SDL_atoi(chosenDisplayId);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user