Skip to content

Commit fa1210d

Browse files
committed
Better Mac fix for early graphics API setup.
1 parent 5128f96 commit fa1210d

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

cocos2d/CCConfiguration.m

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,6 @@ + (CCConfiguration *)sharedConfiguration
9191
{
9292
if (!_sharedConfiguration){
9393
_sharedConfiguration = [[self alloc] init];
94-
[_sharedConfiguration configure];
9594
}
9695

9796
return _sharedConfiguration;

cocos2d/Platforms/Mac/CCGLView.m

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -166,8 +166,8 @@ - (void) prepareOpenGL
166166
GLint swapInt = 1;
167167
[[self openGLContext] setValues:&swapInt forParameter:NSOpenGLCPSwapInterval];
168168

169-
// Force the configuration to init as early as possible.
170-
[CCConfiguration sharedConfiguration];
169+
// Force the graphics API to be set up as early as possible.
170+
[[CCConfiguration sharedConfiguration] graphicsAPI];
171171

172172
// GLint order = -1;
173173
// [[self openGLContext] setValues:&order forParameter:NSOpenGLCPSurfaceOrder];

0 commit comments

Comments
 (0)