mirror of
https://github.com/gnif/LookingGlass.git
synced 2024-11-22 13:37:22 +00:00
[client] egl: reset damage on renderer restart
This commit is contained in:
parent
fe712b7ec9
commit
ad6e3f96e6
@ -314,6 +314,10 @@ static void egl_onRestart(LG_Renderer * renderer)
|
|||||||
eglDestroyContext(this->display, this->frameContext);
|
eglDestroyContext(this->display, this->frameContext);
|
||||||
this->frameContext = NULL;
|
this->frameContext = NULL;
|
||||||
this->start = false;
|
this->start = false;
|
||||||
|
|
||||||
|
INTERLOCKED_SECTION(this->desktopDamageLock, {
|
||||||
|
this->desktopDamage[this->desktopDamageIdx].count = -1;
|
||||||
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
static void egl_calc_mouse_size(struct Inst * this)
|
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 */
|
/* we need full screen damage when the format changes */
|
||||||
INTERLOCKED_SECTION(this->desktopDamageLock, {
|
INTERLOCKED_SECTION(this->desktopDamageLock, {
|
||||||
struct DesktopDamage * damage = this->desktopDamage + this->desktopDamageIdx;
|
this->desktopDamage[this->desktopDamageIdx].count = -1;
|
||||||
damage->count = -1;
|
|
||||||
});
|
});
|
||||||
|
|
||||||
return egl_desktopSetup(this->desktop, format);
|
return egl_desktopSetup(this->desktop, format);
|
||||||
|
Loading…
Reference in New Issue
Block a user