mirror of
https://github.com/gnif/LookingGlass.git
synced 2024-12-23 22:13:40 +00:00
[client] egl: transform overlay damage coordinates
EGL uses bottom-up y-coordinate while we use top-down.
This commit is contained in:
parent
58ab77d237
commit
515f08d2da
@ -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;
|
||||||
|
Loading…
Reference in New Issue
Block a user