From d09edcbcac13e10676eedced42bd5b71948820a3 Mon Sep 17 00:00:00 2001 From: pionere Date: Fri, 11 Nov 2022 12:10:27 +0100 Subject: [PATCH] video: sync Metal_CreateView with GL_CreateContext and Vulkan_CreateSurface no need to check if _this->Metal_CreateView, since it is already checked in Re(create)Window --- src/video/SDL_video.c | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/src/video/SDL_video.c b/src/video/SDL_video.c index 24a42a4ce5..0495e8ca9e 100644 --- a/src/video/SDL_video.c +++ b/src/video/SDL_video.c @@ -4867,12 +4867,7 @@ SDL_Metal_CreateView(SDL_Window * window) return NULL; } - if (_this->Metal_CreateView) { - return _this->Metal_CreateView(_this, window); - } else { - SDL_SetError("Metal is not supported."); - return NULL; - } + return _this->Metal_CreateView(_this, window); } void