Skip to content

Commit ddbf906

Browse files
author
Thayer J Andrews
committed
CCEffectBlur - Adapt blur to the recent effect renderer changes
1 parent 27c0a68 commit ddbf906

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

cocos2d/CCEffectBlur.m

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -284,7 +284,7 @@ -(void)buildRenderPasses
284284

285285
__weak CCEffectBlur *weakSelf = self;
286286

287-
CCEffectRenderPass *pass0 = [[CCEffectRenderPass alloc] init];
287+
CCEffectRenderPass *pass0 = [[CCEffectRenderPass alloc] initWithIndex:0];
288288
pass0.debugLabel = @"CCEffectBlur pass 0";
289289
pass0.shader = self.shader;
290290
pass0.blendMode = [CCBlendMode premultipliedAlphaMode];
@@ -302,7 +302,7 @@ -(void)buildRenderPasses
302302
} copy]];
303303

304304

305-
CCEffectRenderPass *pass1 = [[CCEffectRenderPass alloc] init];
305+
CCEffectRenderPass *pass1 = [[CCEffectRenderPass alloc] initWithIndex:1];
306306
pass1.debugLabel = @"CCEffectBlur pass 1";
307307
pass1.shader = self.shader;
308308
pass1.blendMode = [CCBlendMode premultipliedAlphaMode];

0 commit comments

Comments
 (0)