]> git.sesse.net Git - nageru/commitdiff
Hide the OpenGL window; it is rather annoying.
authorSteinar H. Gunderson <sgunderson@bigfoot.com>
Sat, 28 Jul 2018 14:37:43 +0000 (16:37 +0200)
committerSteinar H. Gunderson <sgunderson@bigfoot.com>
Sat, 28 Jul 2018 14:37:43 +0000 (16:37 +0200)
flow.cpp

index 4d520eb8fc5dca1acd9a515682e5563065d1fc8e..fe8435123243621ec712a26f37297e974d387a31 100644 (file)
--- a/flow.cpp
+++ b/flow.cpp
@@ -1423,10 +1423,10 @@ int main(int argc, char **argv)
        SDL_GL_SetAttribute(SDL_GL_CONTEXT_MINOR_VERSION, 5);
        // SDL_GL_SetAttribute(SDL_GL_CONTEXT_FLAGS, SDL_GL_CONTEXT_DEBUG_FLAG);
        SDL_Window *window = SDL_CreateWindow("OpenGL window",
-                       SDL_WINDOWPOS_UNDEFINED,
-                       SDL_WINDOWPOS_UNDEFINED,
-                       64, 64,
-                       SDL_WINDOW_OPENGL);
+               SDL_WINDOWPOS_UNDEFINED,
+               SDL_WINDOWPOS_UNDEFINED,
+               64, 64,
+               SDL_WINDOW_OPENGL | SDL_WINDOW_HIDDEN);
        SDL_GLContext context = SDL_GL_CreateContext(window);
        assert(context != nullptr);