mirror of
https://github.com/Relintai/sdl2_frt.git
synced 2024-12-20 22:16:49 +01:00
cocoa: Fix assert to use SDL_assert
This commit is contained in:
parent
a73dacbf62
commit
0442d19fc8
@ -121,7 +121,7 @@ Cocoa_Mtl_GetDrawableSize(SDL_Window * window, int * w, int * h)
|
|||||||
SDL_cocoametalview* metalview = [view viewWithTag:METALVIEW_TAG];
|
SDL_cocoametalview* metalview = [view viewWithTag:METALVIEW_TAG];
|
||||||
if (metalview) {
|
if (metalview) {
|
||||||
CAMetalLayer *layer = (CAMetalLayer*)metalview.layer;
|
CAMetalLayer *layer = (CAMetalLayer*)metalview.layer;
|
||||||
assert(layer != NULL);
|
SDL_assert(layer != NULL);
|
||||||
if (w) {
|
if (w) {
|
||||||
*w = layer.drawableSize.width;
|
*w = layer.drawableSize.width;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user