From: Mikko Rasa Date: Sat, 13 Nov 2021 15:10:11 +0000 (+0200) Subject: Make WindowView override the parameterless render function X-Git-Url: http://git.tdb.fi/?a=commitdiff_plain;h=460e530b259f2b372f52be9600ca2bc9149cc612;p=libs%2Fgl.git Make WindowView override the parameterless render function This works better with the new begin/end sequence of Renderer. --- diff --git a/source/backends/opengl/windowview_backend.cpp b/source/backends/opengl/windowview_backend.cpp index b388911e..90a218ef 100644 --- a/source/backends/opengl/windowview_backend.cpp +++ b/source/backends/opengl/windowview_backend.cpp @@ -5,9 +5,9 @@ namespace Msp { namespace GL { -void OpenGLWindowView::render(Renderer &renderer) +void OpenGLWindowView::render() { - View::render(renderer); + View::render(); Device &device = static_cast(this)->device; device.get_context().swap_buffers(); } diff --git a/source/backends/opengl/windowview_backend.h b/source/backends/opengl/windowview_backend.h index c21dee00..da9921c3 100644 --- a/source/backends/opengl/windowview_backend.h +++ b/source/backends/opengl/windowview_backend.h @@ -14,7 +14,7 @@ protected: OpenGLWindowView() = default; - virtual void render(Renderer &); + virtual void render(); virtual const Framebuffer &get_target() const { return sys_framebuf; } void resize_framebuffer(unsigned, unsigned);