summaryrefslogtreecommitdiff
path: root/src/render
diff options
context:
space:
mode:
Diffstat (limited to 'src/render')
-rw-r--r--src/render/OpenGL.cpp4
-rw-r--r--src/render/OpenGL.hpp1
2 files changed, 5 insertions, 0 deletions
diff --git a/src/render/OpenGL.cpp b/src/render/OpenGL.cpp
index db9b136d..c79fab70 100644
--- a/src/render/OpenGL.cpp
+++ b/src/render/OpenGL.cpp
@@ -199,6 +199,10 @@ void CHyprOpenGLImpl::end() {
m_RenderData.mouseZoomUseMouse = true;
}
+void CHyprOpenGLImpl::bindWlrOutputFb() {
+ glBindFramebuffer(GL_FRAMEBUFFER, m_iWLROutputFb);
+}
+
void CHyprOpenGLImpl::initShaders() {
GLuint prog = createProgram(QUADVERTSRC, QUADFRAGSRC);
m_RenderData.pCurrentMonData->m_shQUAD.program = prog;
diff --git a/src/render/OpenGL.hpp b/src/render/OpenGL.hpp
index fc72782f..ac5c3e6b 100644
--- a/src/render/OpenGL.hpp
+++ b/src/render/OpenGL.hpp
@@ -97,6 +97,7 @@ class CHyprOpenGLImpl {
void begin(CMonitor*, CRegion*, bool fake = false);
void end();
+ void bindWlrOutputFb();
void renderRect(wlr_box*, const CColor&, int round = 0);
void renderRectWithDamage(wlr_box*, const CColor&, CRegion* damage, int round = 0);