Avoid crash in gl_frame
This commit is contained in:
parent
9e186b4587
commit
254d2d1fff
|
@ -1656,6 +1656,9 @@ static bool gl_frame(void *data, const void *frame,
|
|||
rarch_perf_init(&frame_run, "frame_run");
|
||||
retro_perf_start(&frame_run);
|
||||
|
||||
if (!gl)
|
||||
return false;
|
||||
|
||||
video_driver_get_size(&width, &height);
|
||||
|
||||
context_bind_hw_render(gl, false);
|
||||
|
|
Loading…
Reference in New Issue