mirror of
https://github.com/RetroDECK/ES-DE.git
synced 2025-04-10 19:15:13 +00:00
(Android) Fixed an issue where random garbage was sometimes briefly rendered on application startup
This commit is contained in:
parent
5fcf2ea49a
commit
3310b23b6f
|
@ -305,10 +305,12 @@ bool Renderer::createWindow()
|
||||||
setIcon();
|
setIcon();
|
||||||
setSwapInterval();
|
setSwapInterval();
|
||||||
|
|
||||||
#if defined(_WIN64)
|
#if defined(_WIN64) || defined(__ANDROID__)
|
||||||
// It seems as if Windows needs this to avoid a brief white screen flash on startup.
|
// It seems as if Windows needs this to avoid a brief white screen flash on startup.
|
||||||
// Possibly this is driver-specific rather than OS-specific. There is additional code
|
// Possibly this is driver-specific rather than OS-specific. There is additional code
|
||||||
// in init() to work around the white screen flash issue on all operating systems.
|
// in init() to work around the white screen flash issue on all operating systems.
|
||||||
|
// On Android the swap is also necessary to avoid displaying random garbage when
|
||||||
|
// the rendering starts.
|
||||||
swapBuffers();
|
swapBuffers();
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue