diff options
author | Vaxry <[email protected]> | 2024-07-22 23:05:22 +0200 |
---|---|---|
committer | Vaxry <[email protected]> | 2024-07-22 23:05:22 +0200 |
commit | 7c68236a51291e71db04233d04eae65f4ebd594f (patch) | |
tree | 153694b7796740212b8516517ffae3eab14b1c6f | |
parent | 4c3b03516209a49244a8f044143c1162752b8a7a (diff) | |
download | Hyprland-7c68236a51291e71db04233d04eae65f4ebd594f.tar.gz Hyprland-7c68236a51291e71db04233d04eae65f4ebd594f.zip |
egl: avoid setting debug mode and handle legacyrenderer
ref #6973
-rw-r--r-- | src/render/OpenGL.cpp | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/render/OpenGL.cpp b/src/render/OpenGL.cpp index fef69f7c..15b3cad8 100644 --- a/src/render/OpenGL.cpp +++ b/src/render/OpenGL.cpp @@ -130,12 +130,15 @@ void CHyprOpenGLImpl::initEGL(bool gbm) { attrs.push_back(EGL_LOSE_CONTEXT_ON_RESET_EXT); } +#ifndef GLES2 attrs.push_back(EGL_CONTEXT_MAJOR_VERSION); attrs.push_back(3); attrs.push_back(EGL_CONTEXT_MINOR_VERSION); attrs.push_back(2); - attrs.push_back(EGL_CONTEXT_OPENGL_DEBUG); - attrs.push_back(ISDEBUG ? EGL_TRUE : EGL_FALSE); +#else + attrs.push_back(EGL_CONTEXT_CLIENT_VERSION); + attrs.push_back(2); +#endif attrs.push_back(EGL_NONE); |