From cfb15d3a055227e51cbdf5fdeb74d805eb098129 Mon Sep 17 00:00:00 2001 From: OBattler Date: Fri, 1 Jan 2021 23:22:48 +0100 Subject: [PATCH] Added some more sanity checks to sdl_blit(). --- src/win/win_sdl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/win/win_sdl.c b/src/win/win_sdl.c index 862927f59..1d9912316 100644 --- a/src/win/win_sdl.c +++ b/src/win/win_sdl.c @@ -234,7 +234,7 @@ sdl_blit(int x, int y, int y1, int y2, int w, int h) SDL_Rect r_src; int ret; - if (!sdl_enabled || (y1 == y2) || (h <= 0) || (render_buffer == NULL)) { + if (!sdl_enabled || (y1 == y2) || (h <= 0) || (render_buffer == NULL) || (sdl_render == NULL) || (sdl_tex == NULL)) { video_blit_complete(); return; }