(Apple) Cleanup in apple_gfx_ctx_init

This commit is contained in:
Twinaphex 2014-10-19 00:24:57 +02:00
parent 0704f80ba9
commit 3f637a7815

View File

@ -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];