Skip to content
Permalink
Browse files

cocoa: Fix assert to use SDL_assert

  • Loading branch information
flibitijibibo committed Mar 4, 2019
1 parent a73dacb commit 0442d19fc89a7ce159dfe2eedbdaa837590e40f7
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/video/cocoa/SDL_cocoametalview.m
@@ -121,7 +121,7 @@ - (void)resizeWithOldSuperviewSize:(NSSize)oldSize
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;
}

0 comments on commit 0442d19

Please sign in to comment.