early return

This commit is contained in:
twinaphex 2017-11-12 17:16:14 +01:00
parent c5292025c3
commit 5eadf021cf

View File

@ -449,7 +449,7 @@ GLenum min_filter_to_mag(GLenum type)
static uintptr_t gl_get_current_framebuffer(void *data)
{
gl_t *gl = (gl_t*)data;
if (!gl->fbo_inited)
if (!gl || !gl->fbo_inited)
return NULL;
return gl->hw_render_fbo[(gl->tex_index + 1) % gl->textures];
}