From 1dcff46fd9711df15355d553ebb5b6eeef661035 Mon Sep 17 00:00:00 2001 From: Thomas Debesse Date: Sat, 12 Sep 2020 04:07:34 +0200 Subject: [PATCH] renderer: fill window with dark grey at creation time, fix #373 --- src/engine/sys/sdl_glimp.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/engine/sys/sdl_glimp.cpp b/src/engine/sys/sdl_glimp.cpp index 4cfc20f3ac..e7f84b6706 100644 --- a/src/engine/sys/sdl_glimp.cpp +++ b/src/engine/sys/sdl_glimp.cpp @@ -722,6 +722,11 @@ static rserr_t GLimp_SetMode( int mode, bool fullscreen, bool noborder ) } SDL_GL_SetSwapInterval( r_swapInterval->integer ); + // Fill window with a dark grey (#141414) background. + glClearColor( 0.08f, 0.08f, 0.08f, 1.0f ); + glClear( GL_COLOR_BUFFER_BIT ); + GLimp_EndFrame(); + glConfig.colorBits = testColorBits; glConfig.depthBits = depthBits; glConfig.stencilBits = stencilBits;