Checking for core context returns an error in GL3

This error should be ignored.
Mac build fix
This commit is contained in:
flyinghead 2018-10-09 19:27:55 +02:00
parent d4815084ec
commit c11e47b08a

View File

@ -1794,9 +1794,11 @@ static void *gl_init(const video_info_t *video,
hwr->context_type = RETRO_HW_CONTEXT_OPENGL;
}
#ifdef GL_CONTEXT_PROFILE_MASK
/* Check if we have a core context */
GLint glflags = 0;
glGetIntegerv(GL_CONTEXT_PROFILE_MASK, &glflags);
while (glGetError() != GL_NO_ERROR);
if (glflags & GL_CONTEXT_CORE_PROFILE_BIT)
{
@ -1822,6 +1824,7 @@ static void *gl_init(const video_info_t *video,
goto error;
}
}
#endif
if (!renderchain_gl_init_first(&gl->renderchain_driver,
&gl->renderchain_data))