mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2026-02-04 14:24:53 +08:00
[cocos2dx] Fixed GL context attribute initialization for iOS
This commit is contained in:
parent
cb949715f3
commit
030a28022a
@ -39,7 +39,8 @@ static AppDelegate s_sharedApplication;
|
||||
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {
|
||||
|
||||
cocos2d::Application *app = cocos2d::Application::getInstance();
|
||||
app->initGLContextAttrs();
|
||||
GLContextAttrs glContextAttrs = {8, 8, 8, 8, 24, 8};
|
||||
cocos2d::GLView::setGLContextAttrs(glContextAttrs);
|
||||
cocos2d::GLViewImpl::convertAttrs();
|
||||
|
||||
// Override point for customization after application launch.
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user