vulkan: SDL_Vulkan_GetInstanceExtensions should accept a NULL window.
Fixes Bugzilla #4235.
This commit is contained in:
parent
4ab7b3d88b
commit
69441bd02e
3 changed files with 18 additions and 10 deletions
|
@ -4103,11 +4103,14 @@ void SDL_Vulkan_UnloadLibrary(void)
|
|||
|
||||
SDL_bool SDL_Vulkan_GetInstanceExtensions(SDL_Window *window, unsigned *count, const char **names)
|
||||
{
|
||||
CHECK_WINDOW_MAGIC(window, SDL_FALSE);
|
||||
if (window) {
|
||||
CHECK_WINDOW_MAGIC(window, SDL_FALSE);
|
||||
|
||||
if (!(window->flags & SDL_WINDOW_VULKAN)) {
|
||||
SDL_SetError(NOT_A_VULKAN_WINDOW);
|
||||
return SDL_FALSE;
|
||||
if (!(window->flags & SDL_WINDOW_VULKAN))
|
||||
{
|
||||
SDL_SetError(NOT_A_VULKAN_WINDOW);
|
||||
return SDL_FALSE;
|
||||
}
|
||||
}
|
||||
|
||||
if (!count) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue