[client] egl: transform overlay damage coordinates

EGL uses bottom-up y-coordinate while we use top-down.
This commit is contained in:
Quantum authored and Geoffrey McRae committed 2021-07-22 18:32:18 +10:00
1 parent 58ab77d237
commit 515f08d2da
1 file changed
+3
+3
View File
@@ -1020,6 +1020,9 @@ bool egl_render(void * opaque, LG_RendererRotate rotate, const bool newFrame)
ImGui_ImplOpenGL3_NewFrame();
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 (damageIdx == 0)
hasOverlay = true;