Create Sdl2NativeWindow hidden

This conforms to the other platform drivers and looks better in general
(no delay between window creation and OpenGL context creation.)
This commit is contained in:
Stefanos A. 2013-10-02 16:31:22 +02:00
parent 4d7ba20a03
commit b077597bc1

View file

@ -70,6 +70,7 @@ namespace OpenTK.Platform.SDL2
var flags = TranslateFlags(options);
flags |= SDL.SDL_WindowFlags.SDL_WINDOW_OPENGL;
flags |= SDL.SDL_WindowFlags.SDL_WINDOW_RESIZABLE;
flags |= SDL.SDL_WindowFlags.SDL_WINDOW_HIDDEN;
if ((flags & SDL.SDL_WindowFlags.SDL_WINDOW_FULLSCREEN_DESKTOP) != 0 ||
(flags & SDL.SDL_WindowFlags.SDL_WINDOW_FULLSCREEN) != 0)