From c9d3936ee53cc123bafd72b05e8ec70e12efbb10 Mon Sep 17 00:00:00 2001 From: twinaphex Date: Wed, 11 May 2016 22:49:41 +0200 Subject: [PATCH] Check for GL_EXT_framebuffer_object too --- gfx/drivers/gl.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/gfx/drivers/gl.c b/gfx/drivers/gl.c index cfaff3e26f..93b9a46972 100644 --- a/gfx/drivers/gl.c +++ b/gfx/drivers/gl.c @@ -190,7 +190,8 @@ static bool gl_check_mipmap(void) if (!extension_queried) { gl_t *gl = (gl_t*)video_driver_get_ptr(false); - extension = gl_query_extension(gl, "ARB_framebuffer_object"); + extension = gl_query_extension(gl, "ARB_framebuffer_object") || + gl_query_extension(gl, "EXT_framebuffer_object"); extension_queried = true; } @@ -230,7 +231,8 @@ static bool gl_init_vao(gl_t *gl) #elif !defined(HAVE_OPENGLES2) static bool gl_check_fbo_proc(gl_t *gl) { - if (!gl->core_context && !gl_query_extension(gl, "ARB_framebuffer_object")) + if (!gl->core_context && !gl_query_extension(gl, "ARB_framebuffer_object") + && !gl_query_extension(gl, "EXT_framebuffer_object")) return false; return glGenFramebuffers