Avoid crash in gl_frame

This commit is contained in:
twinaphex 2016-02-13 21:15:18 +01:00
parent 9e186b4587
commit 254d2d1fff

View File

@ -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);