summaryrefslogtreecommitdiff
path: root/src/video
diff options
context:
space:
mode:
authorRubidium <rubidium@openttd.org>2021-04-12 19:57:08 +0200
committerPatric Stout <github@truebrain.nl>2021-04-12 21:14:01 +0200
commit64e830587455a3baa0354f550ce9b179a070215e (patch)
tree2b20254568964431a7a9b4110eee9b103e16da7a /src/video
parent4fb1e34b1ed84d228ce5d88abe9a78437a3760d3 (diff)
downloadopenttd-64e830587455a3baa0354f550ce9b179a070215e.tar.xz
Fix: [SDL] buffer_locked state not initialised, causing _screen.dst_ptr to be potentially not set
Diffstat (limited to 'src/video')
-rw-r--r--src/video/sdl2_v.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/video/sdl2_v.h b/src/video/sdl2_v.h
index bd43f71f8..d706cc665 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 &param) override;