mirror of
https://github.com/gnif/LookingGlass.git
synced 2024-12-23 06:11:46 +00:00
[client] egl: damage the full screen if the frame format changes
This commit is contained in:
parent
6a898c1e7c
commit
fe712b7ec9
1 changed files with 6 additions and 0 deletions
|
@ -533,6 +533,12 @@ static bool egl_onFrameFormat(LG_Renderer * renderer, const LG_RendererFormat fo
|
||||||
egl_update_scale_type(this);
|
egl_update_scale_type(this);
|
||||||
egl_damageSetup(this->damage, format.width, format.height);
|
egl_damageSetup(this->damage, format.width, format.height);
|
||||||
|
|
||||||
|
/* we need full screen damage when the format changes */
|
||||||
|
INTERLOCKED_SECTION(this->desktopDamageLock, {
|
||||||
|
struct DesktopDamage * damage = this->desktopDamage + this->desktopDamageIdx;
|
||||||
|
damage->count = -1;
|
||||||
|
});
|
||||||
|
|
||||||
return egl_desktopSetup(this->desktop, format);
|
return egl_desktopSetup(this->desktop, format);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue