diff options
author | Michael Lutz <michi@icosahedron.de> | 2021-02-11 21:03:18 +0100 |
---|---|---|
committer | Michael Lutz <michi@icosahedron.de> | 2021-02-22 22:16:07 +0100 |
commit | 421b599541069318817bd0e0768984a662a84753 (patch) | |
tree | e75bb0ce744314803560a44ec9dff11cb7c315cb /src/video/sdl2_opengl_v.h | |
parent | a3039403729abb52679984a55e8d46fc527629b2 (diff) | |
download | openttd-421b599541069318817bd0e0768984a662a84753.tar.xz |
Codechange: [SDL2] Split driver in base-part and default backend
Diffstat (limited to 'src/video/sdl2_opengl_v.h')
-rw-r--r-- | src/video/sdl2_opengl_v.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/video/sdl2_opengl_v.h b/src/video/sdl2_opengl_v.h index 6aff3b5f5..a59233db6 100644 --- a/src/video/sdl2_opengl_v.h +++ b/src/video/sdl2_opengl_v.h @@ -10,7 +10,7 @@ #include "sdl2_v.h" /** The OpenGL video driver for windows. */ -class VideoDriver_SDL_OpenGL : public VideoDriver_SDL { +class VideoDriver_SDL_OpenGL : public VideoDriver_SDL_Base { public: VideoDriver_SDL_OpenGL() : gl_context(nullptr), anim_buffer(nullptr) {} @@ -36,6 +36,8 @@ protected: void Paint() override; bool CreateMainWindow(uint w, uint h, uint flags) override; + void PaintThread() override {} + private: void *gl_context; ///< OpenGL context. uint8 *anim_buffer; ///< Animation buffer from OpenGL back-end. |