diff options
author | vaxerski <[email protected]> | 2022-05-25 23:29:36 +0200 |
---|---|---|
committer | vaxerski <[email protected]> | 2022-05-25 23:29:36 +0200 |
commit | 74990e1e58fa8ab8abd52603d988ecbc2d45dca9 (patch) | |
tree | 1def378a36b8846b6d39c0abd2492619d33ca06e | |
parent | 2c907e054024cefb9f75bcaf75fdf7ae3a594b90 (diff) | |
download | Hyprland-74990e1e58fa8ab8abd52603d988ecbc2d45dca9.tar.gz Hyprland-74990e1e58fa8ab8abd52603d988ecbc2d45dca9.zip |
fix for latest wlroots
-rw-r--r-- | src/render/OpenGL.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/render/OpenGL.cpp b/src/render/OpenGL.cpp index 8051dc80..907fe7e8 100644 --- a/src/render/OpenGL.cpp +++ b/src/render/OpenGL.cpp @@ -3,7 +3,7 @@ #include "../helpers/MiscFunctions.hpp" CHyprOpenGLImpl::CHyprOpenGLImpl() { - RASSERT(eglMakeCurrent(g_pCompositor->m_sWLREGL->display, EGL_NO_SURFACE, EGL_NO_SURFACE, g_pCompositor->m_sWLREGL->context), "Couldn't make the EGL current!"); + RASSERT(eglMakeCurrent(wlr_egl_get_display(g_pCompositor->m_sWLREGL), EGL_NO_SURFACE, EGL_NO_SURFACE, wlr_egl_get_context(g_pCompositor->m_sWLREGL)), "Couldn't unset current EGL!"); auto *const EXTENSIONS = (const char*)glGetString(GL_EXTENSIONS); @@ -83,7 +83,7 @@ CHyprOpenGLImpl::CHyprOpenGLImpl() { // End - RASSERT(eglMakeCurrent(g_pCompositor->m_sWLREGL->display, EGL_NO_SURFACE, EGL_NO_SURFACE, EGL_NO_CONTEXT), "Couldn't unset current EGL!"); + RASSERT(eglMakeCurrent(wlr_egl_get_display(g_pCompositor->m_sWLREGL), EGL_NO_SURFACE, EGL_NO_SURFACE, EGL_NO_CONTEXT), "Couldn't unset current EGL!"); // Done! } |