From: Steinar H. Gunderson Date: Sat, 28 Jul 2018 14:37:43 +0000 (+0200) Subject: Hide the OpenGL window; it is rather annoying. X-Git-Tag: 1.8.0~76^2~164 X-Git-Url: https://git.sesse.net/?a=commitdiff_plain;h=9132bdf83ea245cf7e1d88079b5630865be667f9;p=nageru Hide the OpenGL window; it is rather annoying. --- diff --git a/flow.cpp b/flow.cpp index 4d520eb..fe84351 100644 --- 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);