summaryrefslogtreecommitdiff
path: root/src/video/sdl2_opengl_v.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/video/sdl2_opengl_v.h')
-rw-r--r--src/video/sdl2_opengl_v.h4
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.