mirror of
https://github.com/gnif/LookingGlass.git
synced 2024-11-25 14:57:20 +00:00
[client] egl: don't fade the splash when restarting
This commit is contained in:
parent
bfb12c74fb
commit
76e119f8ad
@ -233,8 +233,6 @@ void egl_on_restart(void * opaque)
|
|||||||
eglDestroyContext(this->display, this->frameContext);
|
eglDestroyContext(this->display, this->frameContext);
|
||||||
this->frameContext = NULL;
|
this->frameContext = NULL;
|
||||||
this->start = false;
|
this->start = false;
|
||||||
this->waitFadeTime = 0;
|
|
||||||
this->waitDone = false;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void egl_on_resize(void * opaque, const int width, const int height, const LG_RendererRect destRect)
|
void egl_on_resize(void * opaque, const int width, const int height, const LG_RendererRect destRect)
|
||||||
@ -575,6 +573,11 @@ bool egl_render(void * opaque, SDL_Window * window)
|
|||||||
if (!this->waitDone)
|
if (!this->waitDone)
|
||||||
egl_splash_render(this->splash, a, this->splashRatio);
|
egl_splash_render(this->splash, a, this->splashRatio);
|
||||||
}
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
if (!this->start)
|
||||||
|
egl_splash_render(this->splash, 1.0f, this->splashRatio);
|
||||||
|
}
|
||||||
|
|
||||||
if (this->showAlert)
|
if (this->showAlert)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user