ソースを参照

No opengles for iOS. Added missing import.

Brucey 3 年 前
コミット
b9a800239f

+ 1 - 1
gl2sdlmax2d.mod/gl2sdlmax2d.bmx

@@ -19,6 +19,6 @@ ModuleInfo "History: Extended flags to Long"
 ModuleInfo "History: 1.00"
 ModuleInfo "History: Initial version."
 
-?Not nx
+?Not nx and not ios
 Import "main.bmx"
 ?

+ 4 - 4
sdl.mod/include/ios/SDL_config.h

@@ -171,10 +171,10 @@
 
 /* Enable OpenGL ES */
 #if !TARGET_OS_MACCATALYST
-#define SDL_VIDEO_OPENGL_ES2 1
-#define SDL_VIDEO_OPENGL_ES 1
-#define SDL_VIDEO_RENDER_OGL_ES 1
-#define SDL_VIDEO_RENDER_OGL_ES2    1
+#define SDL_VIDEO_OPENGL_ES2 0
+#define SDL_VIDEO_OPENGL_ES 0
+#define SDL_VIDEO_RENDER_OGL_ES 0
+#define SDL_VIDEO_RENDER_OGL_ES2    0
 #endif
 
 /* Metal supported on 64-bit devices running iOS 8.0 and tvOS 9.0 and newer

+ 1 - 0
sdl.mod/source.bmx

@@ -286,6 +286,7 @@ Import "SDL/src/hidapi/ios/hid.m"
 Import "SDL/src/joystick/iphoneos/SDL_mfijoystick.m"
 Import "SDL/src/locale/macosx/SDL_syslocale.m"
 Import "SDL/src/loadso/dlopen/SDL_sysloadso.c"
+Import "SDL/src/main/uikit/SDL_uikit_main.c"
 Import "SDL/src/misc/ios/SDL_sysurl.m"
 Import "SDL/src/power/uikit/SDL_syspower.m"
 Import "SDL/src/render/metal/SDL_render_metal.m"

+ 2 - 2
sdlsystem.mod/sdlsystem.bmx

@@ -90,7 +90,7 @@ Type TSDLSystemDriver Extends TSystemDriver
 	End Method
 
 	Method RequestFile$( Text$,exts$,save:Int,file$ ) Override
-?Not haiku
+?Not haiku and Not ios
 		Local requestedFile:String
 		
 		Local res:Int
@@ -146,7 +146,7 @@ Type TSDLSystemDriver Extends TSystemDriver
 	End Method
 	
 	Method RequestDir$( Text$,path$ ) Override
-?Not haiku
+?Not haiku And Not ios
 		Local requestedDir:String
 		
 		Local res:Int