mirror of
https://github.com/gnif/LookingGlass.git
synced 2024-12-22 22:01:46 +00:00
[client] egl: reset damage on renderer restart
This commit is contained in:
parent
fe712b7ec9
commit
ad6e3f96e6
1 changed files with 5 additions and 2 deletions
|
@ -314,6 +314,10 @@ static void egl_onRestart(LG_Renderer * renderer)
|
|||
eglDestroyContext(this->display, this->frameContext);
|
||||
this->frameContext = NULL;
|
||||
this->start = false;
|
||||
|
||||
INTERLOCKED_SECTION(this->desktopDamageLock, {
|
||||
this->desktopDamage[this->desktopDamageIdx].count = -1;
|
||||
});
|
||||
}
|
||||
|
||||
static void egl_calc_mouse_size(struct Inst * this)
|
||||
|
@ -535,8 +539,7 @@ static bool egl_onFrameFormat(LG_Renderer * renderer, const LG_RendererFormat fo
|
|||
|
||||
/* we need full screen damage when the format changes */
|
||||
INTERLOCKED_SECTION(this->desktopDamageLock, {
|
||||
struct DesktopDamage * damage = this->desktopDamage + this->desktopDamageIdx;
|
||||
damage->count = -1;
|
||||
this->desktopDamage[this->desktopDamageIdx].count = -1;
|
||||
});
|
||||
|
||||
return egl_desktopSetup(this->desktop, format);
|
||||
|
|
Loading…
Reference in a new issue