mirror of
https://github.com/libretro/RetroArch
synced 2025-03-02 19:13:34 +00:00
Checking for core context returns an error in GL3
This error should be ignored. Mac build fix
This commit is contained in:
parent
d4815084ec
commit
c11e47b08a
@ -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))
|
||||
|
Loading…
x
Reference in New Issue
Block a user