mirror of
https://github.com/hyprwm/hyprlock.git
synced 2025-12-24 02:40:03 +01:00
core: nvidia workaround destroy renderer before EGL (#884)
This commit is contained in:
parent
c48279d1e0
commit
3cb799b184
1 changed files with 1 additions and 1 deletions
|
|
@ -312,8 +312,8 @@ void CHyprlock::run() {
|
||||||
if (g_pEGL->m_isNvidia && m_vOutputs.empty()) {
|
if (g_pEGL->m_isNvidia && m_vOutputs.empty()) {
|
||||||
Debug::log(LOG, "NVIDIA Workaround: destroying rendering context to avoid crash on reconnect!");
|
Debug::log(LOG, "NVIDIA Workaround: destroying rendering context to avoid crash on reconnect!");
|
||||||
|
|
||||||
g_pEGL.reset();
|
|
||||||
g_pRenderer.reset();
|
g_pRenderer.reset();
|
||||||
|
g_pEGL.reset();
|
||||||
g_pEGL = makeUnique<CEGL>(m_sWaylandState.display);
|
g_pEGL = makeUnique<CEGL>(m_sWaylandState.display);
|
||||||
g_pRenderer = makeUnique<CRenderer>();
|
g_pRenderer = makeUnique<CRenderer>();
|
||||||
g_pRenderer->warpOpacity(1.0);
|
g_pRenderer->warpOpacity(1.0);
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue