summaryrefslogtreecommitdiff
path: root/src/render/OpenGL.hpp
diff options
context:
space:
mode:
authorVaxry <vaxry@vaxry.net>2025-03-26 14:28:19 +0000
committerVaxry <vaxry@vaxry.net>2025-03-26 14:28:19 +0000
commit1c2b9a9ce3a58c76632834774a4716af1de45fe6 (patch)
treed8edf834c58e0465d841a9667eecf9ae2bf5117b /src/render/OpenGL.hpp
parentcec084c178de979621cb520aa4f74a40c96567f2 (diff)
opengl: don't attempt to compile cm on gles3.0
also disable the error for the cm shader fixes #9738
Diffstat (limited to 'src/render/OpenGL.hpp')
-rw-r--r--src/render/OpenGL.hpp14
1 files changed, 11 insertions, 3 deletions
diff --git a/src/render/OpenGL.hpp b/src/render/OpenGL.hpp
index fa6c575d..34bb7e9c 100644
--- a/src/render/OpenGL.hpp
+++ b/src/render/OpenGL.hpp
@@ -276,6 +276,14 @@ class CHyprOpenGLImpl {
} m_sExts;
private:
+ enum eEGLContextVersion : uint8_t {
+ EGL_CONTEXT_GLES_2_0 = 0,
+ EGL_CONTEXT_GLES_3_0,
+ EGL_CONTEXT_GLES_3_2,
+ };
+
+ eEGLContextVersion m_eglContextVersion = EGL_CONTEXT_GLES_3_2;
+
std::list<GLuint> m_lBuffers;
std::list<GLuint> m_lTextures;
@@ -297,9 +305,9 @@ class CHyprOpenGLImpl {
SP<CTexture> m_pMissingAssetTexture, m_pBackgroundTexture, m_pLockDeadTexture, m_pLockDead2Texture, m_pLockTtyTextTexture; // TODO: don't always load lock
- void logShaderError(const GLuint&, bool program = false);
- GLuint createProgram(const std::string&, const std::string&, bool dynamic = false);
- GLuint compileShader(const GLuint&, std::string, bool dynamic = false);
+ void logShaderError(const GLuint&, bool program = false, bool silent = false);
+ GLuint createProgram(const std::string&, const std::string&, bool dynamic = false, bool silent = false);
+ GLuint compileShader(const GLuint&, std::string, bool dynamic = false, bool silent = false);
void createBGTextureForMonitor(PHLMONITOR);
void initShaders();
void initDRMFormats();