From c11e47b08a9ab9440690a68c442ba0bf4b874979 Mon Sep 17 00:00:00 2001 From: flyinghead Date: Tue, 9 Oct 2018 19:27:55 +0200 Subject: [PATCH] Checking for core context returns an error in GL3 This error should be ignored. Mac build fix --- gfx/drivers/gl.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/gfx/drivers/gl.c b/gfx/drivers/gl.c index e20b01af24..50e6bd4095 100644 --- a/gfx/drivers/gl.c +++ b/gfx/drivers/gl.c @@ -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))