Commit d09edcbcac13e10676eedced42bd5b71948820a3

pionere 2022-11-11T12:10:27

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

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
diff --git a/src/video/SDL_video.c b/src/video/SDL_video.c
index 24a42a4..0495e8c 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