Disable GL context attributes on web
This commit is contained in:
parent
281fe94089
commit
5d7d9d40dc
1 changed files with 2 additions and 0 deletions
|
|
@ -27,6 +27,7 @@ namespace psemek::sdl2
|
|||
if (options.highdpi) flags |= SDL_WINDOW_ALLOW_HIGHDPI;
|
||||
|
||||
#if defined(PSEMEK_GRAPHICS_API_OPENGL)
|
||||
#if !defined(__EMSCRIPTEN__)
|
||||
SDL_GL_SetAttribute(SDL_GL_CONTEXT_PROFILE_MASK, SDL_GL_CONTEXT_PROFILE_CORE);
|
||||
SDL_GL_SetAttribute(SDL_GL_CONTEXT_MAJOR_VERSION, gl::sys::major_version());
|
||||
SDL_GL_SetAttribute(SDL_GL_CONTEXT_MINOR_VERSION, gl::sys::minor_version());
|
||||
|
|
@ -46,6 +47,7 @@ namespace psemek::sdl2
|
|||
SDL_GL_SetAttribute(SDL_GL_MULTISAMPLEBUFFERS, 1);
|
||||
SDL_GL_SetAttribute(SDL_GL_MULTISAMPLESAMPLES, options.multisampling);
|
||||
}
|
||||
#endif
|
||||
|
||||
flags |= SDL_WINDOW_OPENGL;
|
||||
#endif
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue