Skip to content

Commit

Permalink
fixed forcing to gles under macos arm
Browse files Browse the repository at this point in the history
  • Loading branch information
harry75369 committed Jul 25, 2024
1 parent 4fbb976 commit bdd41e8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Entry/SDL/AppSDLImpl.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ class AppSDLImpl : public AppBase<AppSDLImpl>
SDL_GL_SetAttribute(SDL_GL_MULTISAMPLEBUFFERS, appConfig().graphicsContextConfig.multiSample > 0);
SDL_GL_SetAttribute(SDL_GL_MULTISAMPLESAMPLES, appConfig().graphicsContextConfig.multiSample);
// SDL_SetHint(SDL_HINT_VIDEO_HIGHDPI_DISABLED, "1");
#if defined(EMSCRIPTEN) || defined(VGG_TARGET_ARCH_RISCV) || defined(VGG_TARGET_ARCH_ARM)
#if defined(EMSCRIPTEN) || defined(VGG_TARGET_ARCH_RISCV) || (defined(VGG_TARGET_ARCH_ARM) && !defined(VGG_TARGET_PLATFORM_macOS))
SDL_GL_SetAttribute(SDL_GL_CONTEXT_MAJOR_VERSION, 2);
SDL_GL_SetAttribute(SDL_GL_CONTEXT_MINOR_VERSION, 0);
SDL_GL_SetAttribute(SDL_GL_CONTEXT_PROFILE_MASK, SDL_GL_CONTEXT_PROFILE_ES);
Expand Down

0 comments on commit bdd41e8

Please sign in to comment.