From a288100edbeed5a22d8d6d1a7d13ea3c632d0bca Mon Sep 17 00:00:00 2001 From: Ivan Gagis Date: Mon, 30 Nov 2026 10:39:30 +0200 Subject: [PATCH] render: make set_framebuffer/get_framebuffer protected The current framebuffer is tracked by the base class (cur_fb); renderers that need the current framebuffer height (e.g. to convert scissor/viewport rects to their native bottom-left origin convention) now read it through get_framebuffer() instead of keeping their own duplicate member. --- src/ruis/render/context.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ruis/render/context.hpp b/src/ruis/render/context.hpp index 8b1ac5f0f..2e0974875 100644 --- a/src/ruis/render/context.hpp +++ b/src/ruis/render/context.hpp @@ -164,7 +164,7 @@ class context : public std::enable_shared_from_this // ===================================== // ====== state control functions ====== -private: +protected: /** * @brief Set current frame buffer. * @param fb - frame buffer to set as the current one.