From d2c3b23ace745d3f79926c71d4cb3c481a394841 Mon Sep 17 00:00:00 2001 From: Vaxry Date: Thu, 30 Nov 2023 01:18:55 +0000 Subject: deps: update wlroots --- src/render/OpenGL.hpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'src/render/OpenGL.hpp') diff --git a/src/render/OpenGL.hpp b/src/render/OpenGL.hpp index ea2fe07e..f4661e1a 100644 --- a/src/render/OpenGL.hpp +++ b/src/render/OpenGL.hpp @@ -82,8 +82,9 @@ struct SCurrentRenderData { float savedProjection[9]; SMonitorRenderData* pCurrentMonData = nullptr; - CFramebuffer* currentFB = nullptr; - CFramebuffer* mainFB = nullptr; + CFramebuffer* currentFB = nullptr; // current rendering to + CFramebuffer* mainFB = nullptr; // main to render to + CFramebuffer* outFB = nullptr; // out to render to (if offloaded, etc) CRegion damage; @@ -107,7 +108,7 @@ class CHyprOpenGLImpl { public: CHyprOpenGLImpl(); - void begin(CMonitor*, CRegion*, bool fake = false); + void begin(CMonitor*, CRegion*, CFramebuffer* fb = nullptr /* if provided, it's not a real frame */); void end(); void renderRect(CBox*, const CColor&, int round = 0); -- cgit v1.2.3