(gl.c) Cleanup

This commit is contained in:
twinaphex 2014-12-03 21:21:55 +01:00
parent 7c33b76818
commit d3977690f2

View File

@ -1808,12 +1808,13 @@ static bool resolve_extensions(gl_t *gl)
(g_extern.system.hw_render_callback.context_type
== RETRO_HW_CONTEXT_OPENGL_CORE);
if (gl->core_context)
RARCH_LOG("[GL]: Using Core GL context.\n");
if (gl->core_context &&
!init_vao(gl))
{
RARCH_ERR("[GL]: Failed to initialize VAOs.\n");
return false;
RARCH_LOG("[GL]: Using Core GL context.\n");
if (!init_vao(gl))
{
RARCH_ERR("[GL]: Failed to initialize VAOs.\n");
return false;
}
}
/* GL_RGB565 internal format support.