Add workaround for Steam Link graphics bug. Fixes #254

This commit is contained in:
Cameron Gutman 2020-03-18 22:26:15 -07:00
commit 953858b0e7

View file

@ -1015,6 +1015,13 @@ void Session::exec(int displayOriginX, int displayOriginY)
int x, y, width, height;
getWindowDimensions(x, y, width, height);
#ifdef STEAM_LINK
// We need a little delay before creating the window or we will trigger some kind
// of graphics driver bug on Steam Link that causes a jagged overlay to appear in
// the top right corner randomly.
SDL_Delay(500);
#endif
m_Window = SDL_CreateWindow("Moonlight",
x,
y,