mirror of
https://github.com/gnif/LookingGlass.git
synced 2024-11-25 06:47:19 +00:00
[client] egl: damage the full screen if the frame format changes
This commit is contained in:
parent
6a898c1e7c
commit
fe712b7ec9
@ -533,6 +533,12 @@ static bool egl_onFrameFormat(LG_Renderer * renderer, const LG_RendererFormat fo
|
||||
egl_update_scale_type(this);
|
||||
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);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user