don't attempt rendering on begin failure

This commit is contained in:
vaxerski 2022-12-02 19:33:54 +00:00
parent 70d4fadc39
commit d6b3bfc48e

View file

@ -266,11 +266,10 @@ void Events::listener_monitorFrame(void* owner, void* data) {
damageBlinkCleanup = 0; damageBlinkCleanup = 0;
} }
wlr_renderer_begin(g_pCompositor->m_sWLRRenderer, PMONITOR->vecPixelSize.x, PMONITOR->vecPixelSize.y); if (wlr_renderer_begin(g_pCompositor->m_sWLRRenderer, PMONITOR->vecPixelSize.x, PMONITOR->vecPixelSize.y)) {
wlr_output_render_software_cursors(PMONITOR->output, NULL);
wlr_output_render_software_cursors(PMONITOR->output, NULL); wlr_renderer_end(g_pCompositor->m_sWLRRenderer);
}
wlr_renderer_end(g_pCompositor->m_sWLRRenderer);
} }
g_pHyprOpenGL->end(); g_pHyprOpenGL->end();