[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:
Geoffrey McRae
2026-08-04 10:54:45 +10:00
parent 2aaf923e48
commit ad53a5e4ee
5 changed files with 28 additions and 23 deletions

View File

@@ -48,6 +48,6 @@ void egl_screenToDesktopMatrix(double matrix[6], int frameWidth, int frameHeight
bool egl_screenToDesktop(struct FrameDamageRect * output, const double matrix[6],
const struct Rect * rect, int width, int height);
void egl_desktopRectsUpdate(EGL_DesktopRects * rects, const struct DamageRects * data,
int width, int height);
void egl_desktopRectsRender(EGL_DesktopRects * rects);
void egl_desktopRectsUpdate(EGL_DesktopRects * rects,
const FrameDamageRect * data, int count, int width, int height);
void egl_desktopRectsRender(EGL_DesktopRects * rects);