mirror of
https://github.com/libretro/RetroArch
synced 2025-01-30 21:32:45 +00:00
(Apple) Cleanup in apple_gfx_ctx_init
This commit is contained in:
parent
0704f80ba9
commit
3f637a7815
@ -109,12 +109,8 @@ static bool apple_gfx_ctx_init(void *data)
|
||||
if (g_use_hw_ctx)
|
||||
{
|
||||
//g_hw_ctx = [[NSOpenGLContext alloc] initWithFormat:g_format shareContext:nil];
|
||||
g_context = [[NSOpenGLContext alloc] initWithFormat:g_format shareContext:g_hw_ctx];
|
||||
}
|
||||
else
|
||||
{
|
||||
g_context = [[NSOpenGLContext alloc] initWithFormat:g_format shareContext:nil];
|
||||
}
|
||||
g_context = [[NSOpenGLContext alloc] initWithFormat:g_format shareContext:(g_use_hw_ctx) ? g_hw_ctx : nil];
|
||||
[g_context setView:g_view];
|
||||
#else
|
||||
g_context = [[EAGLContext alloc] initWithAPI:kEAGLRenderingAPIOpenGLES2];
|
||||
|
Loading…
x
Reference in New Issue
Block a user