]> git.tdb.fi Git - libs/gl.git/commitdiff
Make WindowView override the parameterless render function
authorMikko Rasa <tdb@tdb.fi>
Sat, 13 Nov 2021 15:10:11 +0000 (17:10 +0200)
committerMikko Rasa <tdb@tdb.fi>
Sun, 14 Nov 2021 09:47:47 +0000 (11:47 +0200)
This works better with the new begin/end sequence of Renderer.

source/backends/opengl/windowview_backend.cpp
source/backends/opengl/windowview_backend.h

index b388911e421caaef06a6b1ee6c1461a4106f7236..90a218efdec98c856bb3ff6846a12a2cafddb4f7 100644 (file)
@@ -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<WindowView *>(this)->device;
        device.get_context().swap_buffers();
 }
index c21dee00cc0323eeb1421c2a9ee4d1dfaa621fbd..da9921c36cc327df99a8b05bcbb5d0e9957fb9a3 100644 (file)
@@ -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);