aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/render/OpenGL.hpp
diff options
context:
space:
mode:
authorvaxerski <[email protected]>2023-11-24 12:37:10 +0000
committervaxerski <[email protected]>2023-11-24 12:37:10 +0000
commitaedcade68dd0615fd919a7249633a554d0accd81 (patch)
treea389f145a5f0f1df5092257986865890cefcf7f0 /src/render/OpenGL.hpp
parent802ab58f8a129b42d61ec13898fd978e0920f7d8 (diff)
downloadHyprland-aedcade68dd0615fd919a7249633a554d0accd81.tar.gz
Hyprland-aedcade68dd0615fd919a7249633a554d0accd81.zip
opengl: better checking for required introspection
performance woo
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 4311e16c..9ff571f2 100644
--- a/src/render/OpenGL.hpp
+++ b/src/render/OpenGL.hpp
@@ -30,8 +30,7 @@ inline const float fullVerts[] = {
};
inline const float fanVertsFull[] = {-1.0f, -1.0f, 1.0f, -1.0f, 1.0f, 1.0f, -1.0f, 1.0f};
-enum eDiscardMode
-{
+enum eDiscardMode {
DISCARD_OPAQUE = 1,
DISCARD_ALPHA = 1 << 1
};
@@ -173,7 +172,7 @@ class CHyprOpenGLImpl {
struct {
PFNGLEGLIMAGETARGETRENDERBUFFERSTORAGEOESPROC glEGLImageTargetRenderbufferStorageOES = nullptr;
- PFNEGLDESTROYIMAGEKHRPROC eglDestroyImageKHR = nullptr;
+ PFNEGLDESTROYIMAGEKHRPROC eglDestroyImageKHR = nullptr;
} m_sProc;
private:
@@ -209,6 +208,8 @@ class CHyprOpenGLImpl {
bool shouldUseNewBlurOptimizations(SLayerSurface* pLayer, CWindow* pWindow);
+ bool passRequiresIntrospection(CMonitor* pMonitor);
+
friend class CHyprRenderer;
};