mirror of
https://github.com/gnif/LookingGlass.git
synced 2026-08-04 14:22:02 +00:00
[client] egl: stop aliasing damage tracking layouts
Pass damage rectangle arrays and counts explicitly to the EGL mesh updater instead of casting DesktopDamage to DamageRects.
This commit is contained in:
@@ -508,7 +508,9 @@ bool egl_desktopRender(EGL_Desktop * desktop, unsigned int outputWidth,
|
||||
|
||||
egl_desktopRectsMatrix(desktop->matrix,
|
||||
width, height, x, y, scaleX, scaleY, rotate);
|
||||
egl_desktopRectsUpdate(desktop->mesh, rects, width, height);
|
||||
egl_desktopRectsUpdate(desktop->mesh,
|
||||
rects ? rects->rects : NULL, rects ? rects->count : -1,
|
||||
width, height);
|
||||
|
||||
const bool hdr = desktop->hdr && !desktop->useSpice;
|
||||
uint32_t hdrPeak = 0;
|
||||
@@ -539,7 +541,7 @@ bool egl_desktopRender(EGL_Desktop * desktop, unsigned int outputWidth,
|
||||
{
|
||||
/* The filter output may have changed everywhere, but this only applies
|
||||
* to the render that actually evaluated the filter. */
|
||||
egl_desktopRectsUpdate(desktop->mesh, NULL, width, height);
|
||||
egl_desktopRectsUpdate(desktop->mesh, NULL, -1, width, height);
|
||||
*fullFrame = true;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user