Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

iPhone fixes for compiling with the unofficial sdk

svn-id: r40440
  • Loading branch information...
commit 6d56924bb1854ee9592c4223a4746a32038ade6d 1 parent 665e472
Oystein Eftevaag authored
View
5 backends/platform/iphone/iphone_video.m
@@ -26,10 +26,6 @@
#include "iphone_video.h"
#include "iphone_common.h"
-#import <UIKit/UIKit.h>
-#import <Foundation/Foundation.h>
-#import <QuartzCore/QuartzCore.h>
-
static iPhoneView *sharedInstance = nil;
static int _width = 0;
static int _height = 0;
@@ -271,7 +267,6 @@ - (void)initSurface {
glGenTextures(1, &_screenTexture);
glBindTexture(GL_TEXTURE_2D, _screenTexture);
- glEnable(GL_TEXTURE_2D);
glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MIN_FILTER, GL_NEAREST);
if (_textureBuffer) {
View
2  configure
@@ -1858,7 +1858,7 @@ case $_backend in
;;
iphone)
OBJCFLAGS="$OBJCFLAGS --std=c99"
- LIBS="$LIBS -lobjc -framework UIKit -framework CoreGraphics -framework CoreSurface -framework QuartzCore -framework GraphicsServices -framework CoreFoundation -framework Foundation -framework AudioToolbox -framework CoreAudio"
+ LIBS="$LIBS -lobjc -framework UIKit -framework CoreGraphics -framework OpenGLES -framework QuartzCore -framework GraphicsServices -framework CoreFoundation -framework Foundation -framework AudioToolbox -framework CoreAudio"
;;
dc)
INCLUDES="$INCLUDES "'-I$(srcdir)/backends/platform/dc -isystem $(ronindir)/include'
View
2  ports.mk
@@ -117,7 +117,7 @@ scummvm-static: $(OBJS)
iphone: $(OBJS)
$(CXX) $(LDFLAGS) -o scummvm $(OBJS) \
$(OSX_STATIC_LIBS) \
- -framework UIKit -framework CoreGraphics -framework CoreSurface \
+ -framework UIKit -framework CoreGraphics -framework OpenGLES \
-framework GraphicsServices -framework CoreFoundation -framework QuartzCore \
-framework Foundation -framework AudioToolbox -framework CoreAudio \
-lobjc -lz
Please sign in to comment.
Something went wrong with that request. Please try again.