diff --git a/examples/common/entry_ios.mm b/examples/common/entry_ios.mm index da055d8e..464863fa 100644 --- a/examples/common/entry_ios.mm +++ b/examples/common/entry_ios.mm @@ -43,7 +43,7 @@ namespace entry m_mte.m_argc = 1; m_mte.m_argv = const_cast(argv); - m_eventQueue.postSizeEvent(720, 1024); + m_eventQueue.postSizeEvent(768, 1024); m_thread.init(MainThreadEntry::threadFunc, &m_mte); } @@ -94,14 +94,14 @@ namespace entry using namespace entry; -@interface EAGLView : UIView +@interface View : UIView { CADisplayLink* m_displayLink; } @end -@implementation EAGLView +@implementation View + (Class)layerClass { @@ -128,6 +128,7 @@ using namespace entry; if (nil == m_displayLink) { m_displayLink = [self.window.screen displayLinkWithTarget:self selector:@selector(renderFrame)]; + [m_displayLink setFrameInterval:1]; [m_displayLink addToRunLoop:[NSRunLoop currentRunLoop] forMode:NSDefaultRunLoopMode]; } } @@ -151,11 +152,11 @@ using namespace entry; @interface AppDelegate : UIResponder { UIWindow* m_window; - EAGLView* m_view; + View* m_view; } @property (nonatomic, retain) UIWindow* m_window; -@property (nonatomic, retain) EAGLView* m_view; +@property (nonatomic, retain) View* m_view; @end @@ -168,7 +169,7 @@ using namespace entry; { CGRect rect = [ [UIScreen mainScreen] bounds]; m_window = [ [UIWindow alloc] initWithFrame: rect]; - m_view = [ [EAGLView alloc] initWithFrame: rect]; + m_view = [ [View alloc] initWithFrame: rect]; [m_window addSubview: m_view]; [m_window makeKeyAndVisible]; diff --git a/src/renderer_gl.cpp b/src/renderer_gl.cpp index 94127d40..f337c7cd 100644 --- a/src/renderer_gl.cpp +++ b/src/renderer_gl.cpp @@ -122,7 +122,7 @@ namespace bgfx { "GL_OES_texture_float_linear", false, true }, { "GL_OES_texture_half_float", false, true }, { "GL_OES_texture_half_float_linear", false, true }, - { "GL_OES_vertex_array_object", false, true }, + { "GL_OES_vertex_array_object", false, !BX_PLATFORM_IOS }, { "GL_OES_vertex_half_float", false, true }, { "GL_OES_vertex_type_10_10_10_2", false, true }, };