Skip to content

Commit ce51c29

Browse files
author
Thayer J Andrews
committed
CCEffectStack - Make stitchEffects a class method
There's no reason for it to be an instance method so in the interest of compartmentalization I'm changing it.
1 parent c5a9fd7 commit ce51c29

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

cocos2d/CCEffectStack.m

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,7 @@ - (CCEffectPrepareStatus)prepareForRendering
187187
for (NSArray *stitchList in stitchLists)
188188
{
189189
NSAssert(stitchList.count > 0, @"Encountered an empty stitch list which shouldn't happen.");
190-
[stitchedEffects addObject:[self stitchEffects:stitchList startIndex:effectIndex]];
190+
[stitchedEffects addObject:[CCEffectStack stitchEffects:stitchList startIndex:effectIndex]];
191191
effectIndex += stitchList.count;
192192
}
193193
}
@@ -222,7 +222,7 @@ - (BOOL)readyForRendering
222222

223223
#pragma mark - Internal
224224

225-
-(CCEffect *)stitchEffects:(NSArray*)effects startIndex:(int)startIndex
225+
+ (CCEffect *)stitchEffects:(NSArray*)effects startIndex:(int)startIndex
226226
{
227227
NSMutableArray* allFragFunctions = [[NSMutableArray alloc] init];
228228
NSMutableArray* allFragUniforms = [[NSMutableArray alloc] init];

0 commit comments

Comments
 (0)