Skip to content

Commit

Permalink
Add minor note for EMSCRIPTEN
Browse files Browse the repository at this point in the history
  • Loading branch information
adamkewley committed Jun 13, 2024
1 parent 42b91eb commit 32a127b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/oscar/Platform/App.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,7 @@ namespace
log_info("initializing main application window");

#ifndef EMSCRIPTEN
// note: cannot set context attributes in EMSCRIPTEN
sdl_gl_set_attribute_or_throw(SDL_GL_CONTEXT_PROFILE_MASK, "SDL_GL_CONTEXT_PROFILE_MASK", SDL_GL_CONTEXT_PROFILE_CORE, "SDL_GL_CONTEXT_PROFILE_CORE");
sdl_gl_set_attribute_or_throw(SDL_GL_CONTEXT_MAJOR_VERSION, "SDL_GL_CONTEXT_MAJOR_VERSION", 3, "3");
sdl_gl_set_attribute_or_throw(SDL_GL_CONTEXT_MINOR_VERSION, "SDL_GL_CONTEXT_MINOR_VERSION", 3, "3");
Expand Down

0 comments on commit 32a127b

Please sign in to comment.