Skip to content

Commit 78cf637

Browse files
committed
fixed forcing to gles under macos arm
1 parent cadc562 commit 78cf637

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Entry/SDL/AppSDLImpl.hpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,7 @@ class AppSDLImpl : public AppBase<AppSDLImpl>
158158
SDL_GL_SetAttribute(SDL_GL_MULTISAMPLEBUFFERS, appConfig().graphicsContextConfig.multiSample > 0);
159159
SDL_GL_SetAttribute(SDL_GL_MULTISAMPLESAMPLES, appConfig().graphicsContextConfig.multiSample);
160160
// SDL_SetHint(SDL_HINT_VIDEO_HIGHDPI_DISABLED, "1");
161-
#if defined(EMSCRIPTEN) || defined(VGG_TARGET_ARCH_RISCV) || defined(VGG_TARGET_ARCH_ARM)
161+
#if defined(EMSCRIPTEN) || defined(VGG_TARGET_ARCH_RISCV) || (defined(VGG_TARGET_ARCH_ARM) && !defined(VGG_TARGET_PLATFORM_macOS))
162162
SDL_GL_SetAttribute(SDL_GL_CONTEXT_MAJOR_VERSION, 2);
163163
SDL_GL_SetAttribute(SDL_GL_CONTEXT_MINOR_VERSION, 0);
164164
SDL_GL_SetAttribute(SDL_GL_CONTEXT_PROFILE_MASK, SDL_GL_CONTEXT_PROFILE_ES);

0 commit comments

Comments
 (0)