Still hide window at start (fixes fullscreen in Gnome)

This commit is contained in:
def 2016-05-07 21:16:31 +02:00
parent 9bd30ce447
commit 642e7f7671

View file

@ -602,7 +602,7 @@ int CGraphicsBackend_SDL_OpenGL::Init(const char *pName, int *Screen, int *pWidt
} }
// set flags // set flags
int SdlFlags = SDL_WINDOW_OPENGL; int SdlFlags = SDL_WINDOW_OPENGL | SDL_WINDOW_HIDDEN;
#if defined(SDL_VIDEO_DRIVER_X11) #if defined(SDL_VIDEO_DRIVER_X11)
if(Flags&IGraphicsBackend::INITFLAG_RESIZABLE) if(Flags&IGraphicsBackend::INITFLAG_RESIZABLE)
SdlFlags |= SDL_WINDOW_RESIZABLE; SdlFlags |= SDL_WINDOW_RESIZABLE;
@ -688,6 +688,8 @@ int CGraphicsBackend_SDL_OpenGL::Init(const char *pName, int *Screen, int *pWidt
RunBuffer(&CmdBuffer); RunBuffer(&CmdBuffer);
WaitForIdle(); WaitForIdle();
SDL_ShowWindow(m_pWindow);
// return // return
return 0; return 0;
} }