summaryrefslogtreecommitdiff
path: root/src/render
diff options
context:
space:
mode:
Diffstat (limited to 'src/render')
-rw-r--r--src/render/OpenGL.cpp2
-rw-r--r--src/render/OpenGL.hpp2
2 files changed, 4 insertions, 0 deletions
diff --git a/src/render/OpenGL.cpp b/src/render/OpenGL.cpp
index 2a3723bd..eaea31be 100644
--- a/src/render/OpenGL.cpp
+++ b/src/render/OpenGL.cpp
@@ -2850,6 +2850,8 @@ void CHyprOpenGLImpl::initAssets() {
"unknown"),
CHyprColor{0.9F, 0.9F, 0.9F, 0.7F}, 20, true);
+ m_pScreencopyDeniedTexture = renderText("Permission denied to share screen", Colors::WHITE, 20);
+
ensureBackgroundTexturePresence();
}
diff --git a/src/render/OpenGL.hpp b/src/render/OpenGL.hpp
index c3091f15..ab091f24 100644
--- a/src/render/OpenGL.hpp
+++ b/src/render/OpenGL.hpp
@@ -283,6 +283,8 @@ class CHyprOpenGLImpl {
bool EXT_create_context_robustness = false;
} m_sExts;
+ SP<CTexture> m_pScreencopyDeniedTexture;
+
private:
enum eEGLContextVersion : uint8_t {
EGL_CONTEXT_GLES_2_0 = 0,