From 0f339caf30362047ab676d696e3fb0677021d264 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Higor=20Eur=C3=ADpedes?= Date: Mon, 30 Nov 2015 20:48:06 -0300 Subject: [PATCH] (gl) Fix gl->should_resize being always true --- gfx/drivers/gl.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/gfx/drivers/gl.c b/gfx/drivers/gl.c index 7b1d0a41df..71af9d3f7f 100644 --- a/gfx/drivers/gl.c +++ b/gfx/drivers/gl.c @@ -2678,6 +2678,9 @@ static bool gl_alive(void *data) bool quit = false, resize = false; gl_t *gl = (gl_t*)data; + /* Needed because some context drivers don't track their sizes */ + video_driver_get_size(&temp_width, &temp_height); + if (gfx_ctx_check_window(data, &quit, &resize, &temp_width, &temp_height)) {