(GL) Make gl_alive more robust

This commit is contained in:
Twinaphex 2014-10-03 17:17:18 +02:00
parent 82780de57a
commit d029362dd7
2 changed files with 1 additions and 3 deletions

View File

@ -297,7 +297,6 @@ static void handle_touch_event(NSArray* touches)
- (void)unloadingCore
{
[self showPauseMenu:self];
btpad_set_inquiry_state(true);
}

View File

@ -2441,12 +2441,11 @@ static bool gl_alive(void *data)
{
bool quit = false, resize = false;
gl_t *gl = (gl_t*)data;
gfx_ctx_driver_t *ctx_driver = (gfx_ctx_driver_t*)gl->ctx_driver;
if (!gl)
return false;
ctx_driver->check_window(gl, &quit,
gl->ctx_driver->check_window(gl, &quit,
&resize, &gl->win_width, &gl->win_height,
g_extern.frame_count);