From b85418417f652e975f81aaa927737fc809f3f313 Mon Sep 17 00:00:00 2001 From: Zi Ree Date: Sat, 30 Jul 2022 22:26:06 +0200 Subject: [PATCH] Linux SDL2 - Make screen black when window opens so it doesn't look like a crash --- indra/llwindow/llwindowsdl2.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/indra/llwindow/llwindowsdl2.cpp b/indra/llwindow/llwindowsdl2.cpp index 577f00526d..32626388e1 100644 --- a/indra/llwindow/llwindowsdl2.cpp +++ b/indra/llwindow/llwindowsdl2.cpp @@ -869,6 +869,10 @@ BOOL LLWindowSDL::createContext(int x, int y, int width, int height, int bits, B } #endif // LL_X11 + // clear screen to black right at the start so it doesn't look like a crash + glClearColor(0.0f, 0.0f, 0.0f ,1.0f); + glClear(GL_COLOR_BUFFER_BIT); + SDL_GL_SwapWindow(mWindow); SDL_StartTextInput(); //make sure multisampling is disabled by default