ref: 1c9d770ddfc094a0f4d41843cb94d9649fb83544
parent: 0302531d06e788f955362a73e24984b441f7b885
author: qwx <[email protected]>
date: Tue Jul 20 17:13:30 EDT 2021
r_main: force recalculating a fresh frame on mode change prevents memory corruption-related crashes and invalid state while paused and when resizing window to a smaller size
--- a/r_main.c
+++ b/r_main.c
@@ -1072,6 +1072,7 @@
sw_state.prev_mode = sw_mode->value;
vid_fullscreen->modified = false;
sw_mode->modified = false;
+ cl.force_refdef = true;
}
}