summaryrefslogtreecommitdiff
path: root/src/render/OpenGL.hpp
diff options
context:
space:
mode:
authorVaxry <vaxry@vaxry.net>2023-11-30 01:18:55 +0000
committerVaxry <vaxry@vaxry.net>2023-11-30 01:18:55 +0000
commitd2c3b23ace745d3f79926c71d4cb3c481a394841 (patch)
tree3859a21a16ef66b57150148520e074c6ba4fd3e5 /src/render/OpenGL.hpp
parentb80c72c7ddbf79147d64759c8659eb5939d0327e (diff)
deps: update wlroots
Diffstat (limited to 'src/render/OpenGL.hpp')
-rw-r--r--src/render/OpenGL.hpp7
1 files changed, 4 insertions, 3 deletions
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);