diff options
Diffstat (limited to '3rdparty/bgfx/examples/common/entry/entry_ios.mm')
-rw-r--r-- | 3rdparty/bgfx/examples/common/entry/entry_ios.mm | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/3rdparty/bgfx/examples/common/entry/entry_ios.mm b/3rdparty/bgfx/examples/common/entry/entry_ios.mm index e12c224e623..052c161abd4 100644 --- a/3rdparty/bgfx/examples/common/entry/entry_ios.mm +++ b/3rdparty/bgfx/examples/common/entry/entry_ios.mm @@ -185,7 +185,7 @@ static void* m_device = NULL; } } #endif - + return [CAEAGLLayer class]; } @@ -197,15 +197,15 @@ static void* m_device = NULL; { return nil; } - + bgfx::PlatformData pd; pd.ndt = NULL; pd.nwh = self.layer; - pd.context = m_device; + pd.context = m_device; pd.backBuffer = NULL; pd.backBufferDS = NULL; bgfx::setPlatformData(pd); - + return self; } @@ -309,7 +309,7 @@ static void* m_device = NULL; [m_window setRootViewController:viewController]; [m_window makeKeyAndVisible]; - + [m_window makeKeyAndVisible]; //float scaleFactor = [[UIScreen mainScreen] scale]; // should use this, but ui is too small on ipad retina |