Fixed creating a metal renderer without specifying a metal window

This commit is contained in:
Sam Lantinga
2020-05-25 14:10:51 -07:00
parent f176d7fda0
commit f16e6bfa8e
2 changed files with 26 additions and 4 deletions

View File

@@ -1706,10 +1706,12 @@ SDL_RecreateWindow(SDL_Window * window, Uint32 flags)
return -1;
}
/*
if ((window->flags & SDL_WINDOW_METAL) != (flags & SDL_WINDOW_METAL)) {
SDL_SetError("Can't change SDL_WINDOW_METAL window flag");
return -1;
}
*/
if ((window->flags & SDL_WINDOW_VULKAN) && (flags & SDL_WINDOW_OPENGL)) {
SDL_SetError("Vulkan and OpenGL not supported on same window");