summaryrefslogtreecommitdiff
path: root/src/render/OpenGL.hpp
diff options
context:
space:
mode:
authorvaxerski <43317083+vaxerski@users.noreply.github.com>2022-06-29 12:54:53 +0200
committervaxerski <43317083+vaxerski@users.noreply.github.com>2022-06-29 12:54:53 +0200
commit8820f7f210b1183c97dd58028093c27355a992e7 (patch)
tree91dc1414dcfad9a24f258c6028c1342f7756b9d6 /src/render/OpenGL.hpp
parent73663a8ba550977f2a6a2f82fefc8ca54af2a757 (diff)
optimization + revert one oopsie
Diffstat (limited to 'src/render/OpenGL.hpp')
-rw-r--r--src/render/OpenGL.hpp18
1 files changed, 10 insertions, 8 deletions
diff --git a/src/render/OpenGL.hpp b/src/render/OpenGL.hpp
index a70e382b..79708fac 100644
--- a/src/render/OpenGL.hpp
+++ b/src/render/OpenGL.hpp
@@ -29,10 +29,20 @@ inline const float fanVertsFull[] = {
-1.0f, 1.0f
};
+struct SMonitorRenderData {
+ CFramebuffer primaryFB;
+ CFramebuffer mirrorFB;
+ CFramebuffer mirrorSwapFB;
+
+ CTexture stencilTex;
+};
+
struct SCurrentRenderData {
SMonitor* pMonitor = nullptr;
float projection[9];
+ SMonitorRenderData* pCurrentMonData = nullptr;
+
pixman_region32_t* pDamage = nullptr;
bool renderingPrimarySurface = false;
@@ -40,14 +50,6 @@ struct SCurrentRenderData {
Vector2D primarySurfaceUVBottomRight = Vector2D(-1, -1);
};
-struct SMonitorRenderData {
- CFramebuffer primaryFB;
- CFramebuffer mirrorFB;
- CFramebuffer mirrorSwapFB;
-
- CTexture stencilTex;
-};
-
class CHyprOpenGLImpl {
public: