mirror of
https://github.com/hyprwm/Hyprland.git
synced 2025-08-05 06:31:57 -07:00
fix for latest wlroots
This commit is contained in:
@@ -3,7 +3,7 @@
|
|||||||
#include "../helpers/MiscFunctions.hpp"
|
#include "../helpers/MiscFunctions.hpp"
|
||||||
|
|
||||||
CHyprOpenGLImpl::CHyprOpenGLImpl() {
|
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);
|
auto *const EXTENSIONS = (const char*)glGetString(GL_EXTENSIONS);
|
||||||
|
|
||||||
@@ -83,7 +83,7 @@ CHyprOpenGLImpl::CHyprOpenGLImpl() {
|
|||||||
|
|
||||||
// End
|
// 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!
|
// Done!
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user