From bdd41e893f2fa46573080a98ea4a2e750b655ab8 Mon Sep 17 00:00:00 2001 From: Chaoya Li Date: Thu, 25 Jul 2024 18:42:56 +0800 Subject: [PATCH] fixed forcing to gles under macos arm --- src/Entry/SDL/AppSDLImpl.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Entry/SDL/AppSDLImpl.hpp b/src/Entry/SDL/AppSDLImpl.hpp index e4db7a46..3d602c68 100644 --- a/src/Entry/SDL/AppSDLImpl.hpp +++ b/src/Entry/SDL/AppSDLImpl.hpp @@ -158,7 +158,7 @@ class AppSDLImpl : public AppBase 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);