From dee9d6dfd4fcab6c7a35a770f92311052c52a1f8 Mon Sep 17 00:00:00 2001 From: Rubidium Date: Mon, 12 Apr 2021 19:57:08 +0200 Subject: [PATCH] Fix: [SDL] buffer_locked state not initialised, causing _screen.dst_ptr to be potentially not set --- src/video/sdl2_v.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/video/sdl2_v.h b/src/video/sdl2_v.h index bd43f71f89..d706cc6654 100644 --- a/src/video/sdl2_v.h +++ b/src/video/sdl2_v.h @@ -17,7 +17,7 @@ /** The SDL video driver. */ class VideoDriver_SDL_Base : public VideoDriver { public: - VideoDriver_SDL_Base() : sdl_window(nullptr) {} + VideoDriver_SDL_Base() : sdl_window(nullptr), buffer_locked(false) {} const char *Start(const StringList ¶m) override;