mirror of
https://github.com/gnif/LookingGlass.git
synced 2026-08-04 06:12:04 +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:
@@ -169,7 +169,7 @@ bool egl_damageRender(EGL_Damage * damage, LG_RendererRotate rotate, const struc
|
||||
egl_shaderUse(damage->shader);
|
||||
|
||||
if (data && data->count != 0)
|
||||
egl_desktopRectsUpdate(damage->mesh, (const struct DamageRects *) data,
|
||||
egl_desktopRectsUpdate(damage->mesh, data->rects, data->count,
|
||||
damage->width, damage->height);
|
||||
|
||||
egl_desktopRectsRender(damage->mesh);
|
||||
|
||||
Reference in New Issue
Block a user