From 387e18b5284504f86e251126842d3ab54c5a2e56 Mon Sep 17 00:00:00 2001 From: Twinaphex Date: Tue, 19 Nov 2019 21:04:41 +0100 Subject: [PATCH] cocoagl_gfx_ctx_set_video_mode - go through [CocoaView get] here --- gfx/drivers_context/cocoa_gl_ctx.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gfx/drivers_context/cocoa_gl_ctx.m b/gfx/drivers_context/cocoa_gl_ctx.m index f64af414d2..f5ce5d0eb0 100644 --- a/gfx/drivers_context/cocoa_gl_ctx.m +++ b/gfx/drivers_context/cocoa_gl_ctx.m @@ -680,7 +680,7 @@ static bool cocoagl_gfx_ctx_set_video_mode(void *data, #if defined(HAVE_COCOA_METAL) NSView *g_view = apple_platform.renderView; #elif defined(HAVE_COCOA) - CocoaView *g_view = (CocoaView*)nsview_get_ptr(); + CocoaView *g_view = [CocoaView get]; #endif #if defined(HAVE_COCOA) || defined(HAVE_COCOA_METAL) cocoa_ctx_data_t *cocoa_ctx = (cocoa_ctx_data_t*)data;