[client] egl: damage the full screen if the frame format changes
This commit is contained in:
1 parent
6a898c1e7c
commit
fe712b7ec9
1 file changed
+6
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user