mirror of
https://github.com/scratchfoundation/bgfx.git
synced 2024-11-24 16:48:18 -05:00
Cleanup.
This commit is contained in:
parent
6d3a082a83
commit
053dd8c524
1 changed files with 5 additions and 5 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue