mirror of
https://github.com/libretro/RetroArch
synced 2025-03-17 10:21:26 +00:00
ios9: Fix using opengles2 context (#17269)
This commit is contained in:
parent
17fc55c762
commit
8d640fc048
@ -479,9 +479,15 @@ static bool cocoa_gl_gfx_ctx_set_video_mode(void *data,
|
||||
{
|
||||
cocoa_ctx_data_t *cocoa_ctx = (cocoa_ctx_data_t*)data;
|
||||
|
||||
#if defined(HAVE_OPENGLES3)
|
||||
if (cocoa_ctx->flags & COCOA_CTX_FLAG_USE_HW_CTX)
|
||||
g_hw_ctx = [[EAGLContext alloc] initWithAPI:kEAGLRenderingAPIOpenGLES3];
|
||||
g_ctx = [[EAGLContext alloc] initWithAPI:kEAGLRenderingAPIOpenGLES3];
|
||||
#elif defined(HAVE_OPENGLES2)
|
||||
if (cocoa_ctx->flags & COCOA_CTX_FLAG_USE_HW_CTX)
|
||||
g_hw_ctx = [[EAGLContext alloc] initWithAPI:kEAGLRenderingAPIOpenGLES2];
|
||||
g_ctx = [[EAGLContext alloc] initWithAPI:kEAGLRenderingAPIOpenGLES2];
|
||||
#endif
|
||||
|
||||
#ifdef OSX
|
||||
[g_ctx makeCurrentContext];
|
||||
|
Loading…
x
Reference in New Issue
Block a user