1
0
Fork 0
mirror of https://github.com/AquariaOSE/Aquaria.git synced 2024-11-25 09:44:02 +00:00

Force desktop OpenGL

This commit is contained in:
Yaroslav Isakov 2020-07-01 18:46:13 +02:00
parent a939bc2660
commit 74e196daa5

View file

@ -66,6 +66,9 @@ void Window::_open(unsigned w, unsigned h, bool full, unsigned bpp, bool vsync,
# endif
SDL_GL_SetAttribute(SDL_GL_SHARE_WITH_CURRENT_CONTEXT, 1);
SDL_GL_SetAttribute(SDL_GL_DOUBLEBUFFER, 1);
SDL_GL_SetAttribute(SDL_GL_CONTEXT_MAJOR_VERSION, 2 );
SDL_GL_SetAttribute(SDL_GL_CONTEXT_MINOR_VERSION, 1 );
SDL_GL_SetAttribute(SDL_GL_CONTEXT_PROFILE_MASK, 0 );
SDL_SetHint("SDL_VIDEO_HIGHDPI_DISABLED", "1");
Uint32 flags = SDL_WINDOW_OPENGL | SDL_WINDOW_SHOWN | SDL_WINDOW_RESIZABLE;