[client] egl: transform overlay damage coordinates

EGL uses bottom-up y-coordinate while we use top-down.
This commit is contained in:
Quantum 2021-07-22 03:52:53 -04:00 committed by Geoffrey McRae
parent 58ab77d237
commit 515f08d2da

View File

@ -1020,6 +1020,9 @@ bool egl_render(void * opaque, LG_RendererRotate rotate, const bool newFrame)
ImGui_ImplOpenGL3_NewFrame(); ImGui_ImplOpenGL3_NewFrame();
ImGui_ImplOpenGL3_RenderDrawData(igGetDrawData()); ImGui_ImplOpenGL3_RenderDrawData(igGetDrawData());
for (int i = 0; i < damageIdx; ++i)
damage[i].y = this->height - damage[i].y - damage[i].h;
// if there were too many rects invalidate the entire window // if there were too many rects invalidate the entire window
if (damageIdx == 0) if (damageIdx == 0)
hasOverlay = true; hasOverlay = true;