(iOS) Should fix iOS build problems

This commit is contained in:
Twinaphex 2019-11-20 02:58:17 +01:00
parent 540edd7b5d
commit d2d240ecf5
3 changed files with 4 additions and 4 deletions

View File

@ -63,10 +63,6 @@ typedef struct cocoa_ctx_data
static enum gfx_ctx_api cocoagl_api = GFX_CTX_NONE;
#if defined(HAVE_COCOATOUCH)
static GLKView *g_view;
#endif
static GLContextClass* g_hw_ctx;
static GLContextClass* g_context;

View File

@ -49,8 +49,10 @@ id apple_platform;
}
#endif
#if defined(HAVE_COCOA) || defined(HAVE_COCOA_METAL)
@property(nonatomic, retain) NSWindow IBOutlet *window;
@end
#endif
#endif

View File

@ -53,6 +53,8 @@ static void *nsview_get_ptr(void)
}
#if defined(HAVE_COCOATOUCH)
static GLKView *g_view;
static void *glkitview_init(void)
{
g_view = [GLKView new];