EGL
This commit is contained in:
parent
dcd8b49c43
commit
116ab9e56c
4 changed files with 13 additions and 0 deletions
|
|
@ -20,6 +20,7 @@ CCompositor::CCompositor() {
|
|||
const auto DRMFD = wlr_backend_get_drm_fd(m_sWLRBackend);
|
||||
if (DRMFD < 0) {
|
||||
Debug::log(CRIT, "Couldn't query the DRM FD!");
|
||||
RIP("DRMFD NULL!");
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
@ -41,6 +42,13 @@ CCompositor::CCompositor() {
|
|||
return;
|
||||
}
|
||||
|
||||
m_sWLREGL = wlr_gles2_renderer_get_egl(m_sWLRRenderer);
|
||||
|
||||
if (!m_sWLREGL) {
|
||||
Debug::log(CRIT, "m_sWLREGL was NULL!");
|
||||
RIP("m_sWLREGL NULL!");
|
||||
return;
|
||||
}
|
||||
|
||||
m_sWLRCompositor = wlr_compositor_create(m_sWLDisplay, m_sWLRRenderer);
|
||||
m_sWLRSubCompositor = wlr_subcompositor_create(m_sWLDisplay);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue