diff options
Diffstat (limited to 'src/render')
-rw-r--r-- | src/render/graphics.h | 6 | ||||
-rw-r--r-- | src/render/modernopenglgraphics.h | 5 |
2 files changed, 6 insertions, 5 deletions
diff --git a/src/render/graphics.h b/src/render/graphics.h index e6fc44865..ac917a61b 100644 --- a/src/render/graphics.h +++ b/src/render/graphics.h @@ -415,6 +415,10 @@ class Graphics notfinal */ virtual const ClipRect *getCurrentClipArea() const; +#ifdef USE_OPENGL + virtual void createGLContext(); +#endif + /** * Draws a single point/pixel. * @@ -504,8 +508,6 @@ class Graphics notfinal bool videoInfo(); #ifdef USE_OPENGL - virtual void createGLContext(); - void setOpenGLFlags(); #endif /** diff --git a/src/render/modernopenglgraphics.h b/src/render/modernopenglgraphics.h index ed03ea6ca..f32e1f74d 100644 --- a/src/render/modernopenglgraphics.h +++ b/src/render/modernopenglgraphics.h @@ -75,15 +75,14 @@ class ModernOpenGLGraphics final : public Graphics void removeArray(const uint32_t id, uint32_t *const arr) override final; + virtual void createGLContext() override final; + #include "render/graphicsdef.hpp" #include "render/openglgraphicsdef.hpp" #include "render/openglgraphicsdefadvanced.hpp" - protected: - virtual void createGLContext() override final; - private: void deleteGLObjects(); |