mirror of
https://github.com/gnif/LookingGlass.git
synced 2025-10-11 09:58:10 +00:00
[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:
@@ -1016,7 +1016,6 @@ bool egl_render(void * opaque, LG_RendererRotate rotate, const bool newFrame)
|
|||||||
break;
|
break;
|
||||||
case -1: // full damage
|
case -1: // full damage
|
||||||
hasOverlay = true;
|
hasOverlay = true;
|
||||||
damageIdx = 0;
|
|
||||||
// fallthrough
|
// fallthrough
|
||||||
default:
|
default:
|
||||||
ImGui_ImplOpenGL3_NewFrame();
|
ImGui_ImplOpenGL3_NewFrame();
|
||||||
@@ -1062,6 +1061,8 @@ bool egl_render(void * opaque, LG_RendererRotate rotate, const bool newFrame)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
else
|
||||||
|
damageIdx = 0;
|
||||||
this->hadOverlay = hasOverlay;
|
this->hadOverlay = hasOverlay;
|
||||||
free(desktopDamage);
|
free(desktopDamage);
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user