mirror of
https://github.com/libretro/RetroArch
synced 2025-01-30 21:32:45 +00:00
early return
This commit is contained in:
parent
c5292025c3
commit
5eadf021cf
@ -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];
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user