From 25a61f681724129d66be5a1b4c3baf92f8f86c12 Mon Sep 17 00:00:00 2001 From: Hugh Sanderson Date: Fri, 7 Jun 2024 22:55:33 +0800 Subject: [PATCH] Port NME_LOCAL_TOOLKIT to mac --- project/ToolkitBuild.xml | 2 ++ project/toolkit/sdl/configs/mac/SDL_config.h | 10 ++++++++-- project/toolkit/sdl/files.xml | 8 +++++--- 3 files changed, 15 insertions(+), 5 deletions(-) diff --git a/project/ToolkitBuild.xml b/project/ToolkitBuild.xml index 7f806b0cb..157b58f21 100644 --- a/project/ToolkitBuild.xml +++ b/project/ToolkitBuild.xml @@ -270,6 +270,8 @@ + + diff --git a/project/toolkit/sdl/configs/mac/SDL_config.h b/project/toolkit/sdl/configs/mac/SDL_config.h index 3fc1cfc7e..17ae45348 100644 --- a/project/toolkit/sdl/configs/mac/SDL_config.h +++ b/project/toolkit/sdl/configs/mac/SDL_config.h @@ -208,9 +208,15 @@ #ifndef SDL_VIDEO_OPENGL_ES2 #define SDL_VIDEO_OPENGL_ES2 1 #endif -#ifndef SDL_VIDEO_OPENGL_EGL -#define SDL_VIDEO_OPENGL_EGL 0 + +#ifdef SDL_VIDEO_OPENGL_EGL +#undef SDL_VIDEO_OPENGL_EGL #endif + +//#ifndef SDL_VIDEO_OPENGL_EGL +//#define SDL_VIDEO_OPENGL_EGL 0 +//#endif + #ifndef SDL_VIDEO_OPENGL_CGL #define SDL_VIDEO_OPENGL_CGL 1 #endif diff --git a/project/toolkit/sdl/files.xml b/project/toolkit/sdl/files.xml index c2a95e747..c7ba1f404 100644 --- a/project/toolkit/sdl/files.xml +++ b/project/toolkit/sdl/files.xml @@ -182,6 +182,8 @@ + + @@ -313,7 +315,7 @@
- + @@ -543,8 +545,9 @@
- + + @@ -556,7 +559,6 @@ -