cocoa: Fix assert to use SDL_assert

This commit is contained in:
Ethan Lee 2019-03-04 12:16:43 -05:00
parent a73dacbf62
commit 0442d19fc8

View File

@ -121,7 +121,7 @@ Cocoa_Mtl_GetDrawableSize(SDL_Window * window, int * w, int * h)
SDL_cocoametalview* metalview = [view viewWithTag:METALVIEW_TAG];
if (metalview) {
CAMetalLayer *layer = (CAMetalLayer*)metalview.layer;
assert(layer != NULL);
SDL_assert(layer != NULL);
if (w) {
*w = layer.drawableSize.width;
}