Skip to content

Commit 67384fc

Browse files
committed
Cleaning up some TODO warnings.
1 parent 453a9ef commit 67384fc

File tree

3 files changed

+3
-4
lines changed

3 files changed

+3
-4
lines changed

cocos2d/CCTextureCache.m

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -91,11 +91,10 @@ -(id) init
9191
_loadingQueue = dispatch_queue_create("org.cocos2d.texturecacheloading", NULL);
9292
_dictQueue = dispatch_queue_create("org.cocos2d.texturecachedict", NULL);
9393

94-
#warning TODO
94+
// Skip the GL context sharegroup code for Metal.
9595
if([CCConfiguration sharedConfiguration].graphicsAPI == CCGraphicsAPIMetal) return self;
9696

9797
#if !__CC_PLATFORM_ANDROID
98-
#warning TODO might not be a GL view.
9998
CCGLView *view = (CCGLView*)[[CCDirector sharedDirector] view];
10099
NSAssert(view, @"Do not initialize the TextureCache before the Director");
101100
#endif

cocos2d/Platforms/iOS/CCAppDelegate.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -178,7 +178,7 @@ - (void) setupCocos2dWithOptions:(NSDictionary*)config
178178
break;
179179
#if __CC_METAL_SUPPORTED_AND_ENABLED
180180
case CCGraphicsAPIMetal:
181-
#warning TODO
181+
// TODO support MSAA, depth buffers, etc.
182182
ccview = [[CCMetalView alloc] initWithFrame:bounds];
183183
break;
184184
#endif

cocos2d/Platforms/iOS/CCMetalView.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ - (id) initWithFrame:(CGRect)frame
3939
{
4040
_context = [[CCMetalContext alloc] init];
4141

42-
#warning Temporary. Move into CCRenderDispatch?
42+
//TODO Move into CCRenderDispatch to support threaded rendering with Metal?
4343
[CCMetalContext setCurrentContext:_context];
4444

4545
_queuedFramesSemaphore = dispatch_semaphore_create(CC_METAL_MAX_QUEUED_FRAMES);

0 commit comments

Comments
 (0)