diff options
| author | vaxerski <43317083+vaxerski@users.noreply.github.com> | 2022-04-11 16:39:48 +0200 |
|---|---|---|
| committer | vaxerski <43317083+vaxerski@users.noreply.github.com> | 2022-04-11 16:39:48 +0200 |
| commit | b56343133d21622a6187bb1ef8906023ecbc09ef (patch) | |
| tree | d755b40d36cf18b9ec1d6e49b5185cbad2d6fd79 /src/render/OpenGL.hpp | |
| parent | 0f9850fafcb2006e4bf943a65d79b99567a3be4f (diff) | |
fixed blur rendering, stencil and gles3
Diffstat (limited to 'src/render/OpenGL.hpp')
| -rw-r--r-- | src/render/OpenGL.hpp | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/src/render/OpenGL.hpp b/src/render/OpenGL.hpp index f18e48af..c2dded11 100644 --- a/src/render/OpenGL.hpp +++ b/src/render/OpenGL.hpp @@ -29,6 +29,13 @@ struct SCurrentRenderData { float projection[9]; }; +struct SMonitorRenderData { + CFramebuffer primaryFB; + CFramebuffer mirrorFB; + + CTexture stencilTex; +}; + class CHyprOpenGLImpl { public: @@ -56,7 +63,7 @@ public: GLint m_iWLROutputFb = 0; std::unordered_map<CWindow*, CFramebuffer> m_mWindowFramebuffers; - std::unordered_map<SMonitor*, CFramebuffer> m_mMonitorFramebuffers; + std::unordered_map<SMonitor*, SMonitorRenderData> m_mMonitorRenderResources; std::unordered_map<SMonitor*, CTexture> m_mMonitorBGTextures; private: |
