[client] egl: correctly handle mixing imgui and non-imgui overlays

This allows the full frame to be damaged when both types are visible.
This commit is contained in:
Quantum authored and Geoffrey McRae committed 2021-07-23 15:53:59 +10:00
1 parent 3cf0257f34
commit 334bfeecea
1 file changed
+2 -1
+2 -1
View File
@@ -1016,7 +1016,6 @@ bool egl_render(void * opaque, LG_RendererRotate rotate, const bool newFrame)
break;
case -1: // full damage
hasOverlay = true;
damageIdx = 0;
// fallthrough
default:
ImGui_ImplOpenGL3_NewFrame();
@@ -1062,6 +1061,8 @@ bool egl_render(void * opaque, LG_RendererRotate rotate, const bool newFrame)
}
}
}
else
damageIdx = 0;
this->hadOverlay = hasOverlay;
free(desktopDamage);