(Android) Fix crash on orientation update.

This commit is contained in:
notaz 2012-12-26 01:57:06 +02:00
parent bbc898400d
commit df2466c5ed
1 changed files with 3 additions and 1 deletions

View File

@ -84,9 +84,11 @@ static void gfx_ctx_get_video_size(unsigned *width, unsigned *height)
}
}
static bool gfx_ctx_orientation_update(void)
static void gfx_ctx_orientation_update(void)
{
gl_t *gl = (gl_t*)driver.video_data;
if (!gl)
return;
// Get real known video size, which might have been altered by context.
gfx_ctx_get_video_size(&gl->win_width, &gl->win_height);