From 54ccf9c6b37a8aadde7b8e1fc737668f4966db61 Mon Sep 17 00:00:00 2001 From: Vaxry Date: Thu, 19 Jun 2025 13:46:42 +0200 Subject: renderer: make lock fail textures dynamically loaded this should reduce idle vram usage by a whopping 16MB, but also might fix the tty unknown issue. --- src/render/OpenGL.hpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/render/OpenGL.hpp') diff --git a/src/render/OpenGL.hpp b/src/render/OpenGL.hpp index 92d9b7d3..fc091f36 100644 --- a/src/render/OpenGL.hpp +++ b/src/render/OpenGL.hpp @@ -249,6 +249,8 @@ class CHyprOpenGLImpl { GLuint compileShader(const GLuint&, std::string, bool dynamic = false, bool silent = false); void useProgram(GLuint prog); + void ensureLockTexturesRendered(bool load); + bool m_shadersInitialized = false; SP m_shaders; @@ -329,7 +331,7 @@ class CHyprOpenGLImpl { SP m_backgroundTexture; SP m_lockDeadTexture; SP m_lockDead2Texture; - SP m_lockTtyTextTexture; // TODO: don't always load lock + SP m_lockTtyTextTexture; void logShaderError(const GLuint&, bool program = false, bool silent = false); void createBGTextureForMonitor(PHLMONITOR); -- cgit v1.2.3