From 8efa2b146ea3733429043095f3461aac7f026f16 Mon Sep 17 00:00:00 2001 From: twinaphex Date: Mon, 24 Apr 2017 09:44:05 +0200 Subject: [PATCH] Add this to d3d_alive --- gfx/drivers/d3d.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/gfx/drivers/d3d.cpp b/gfx/drivers/d3d.cpp index d21876624e..79e3f7f454 100644 --- a/gfx/drivers/d3d.cpp +++ b/gfx/drivers/d3d.cpp @@ -873,6 +873,9 @@ static bool d3d_alive(void *data) bool quit = false; bool resize = false; + /* Needed because some context drivers don't track their sizes */ + video_driver_get_size(&temp_width, &temp_height); + size_data.quit = &quit; size_data.resize = &resize; size_data.width = &temp_width;