File tree Expand file tree Collapse file tree 1 file changed +2
-12
lines changed Expand file tree Collapse file tree 1 file changed +2
-12
lines changed Original file line number Diff line number Diff line change 19
19
20
20
#if CC_ENABLE_EXPERIMENTAL_EFFECTS
21
21
22
- #define CCEFFECT_DEBUG_PASSES 0
23
- #if CCEFFECT_DEBUG_PASSES
24
- #define CCEFFECT_DEBUG_PUSH_GROUP (R ) [(R) pushGroup ]
25
- #define CCEFFECT_DEBUG_POP_GROUP (R, L ) [(R) popGroupWithDebugLabel: (L) globalSortOrder: 0 ]
26
- #else
27
- #define CCEFFECT_DEBUG_PUSH_GROUP (R )
28
- #define CCEFFECT_DEBUG_POP_GROUP (R, L )
29
- #endif
30
-
31
-
32
22
@interface CCEffectRenderTarget : NSObject
33
23
34
24
@property (nonatomic , readonly ) CCTexture *texture;
@@ -172,7 +162,7 @@ -(void)drawSprite:(CCSprite *)sprite withEffect:(CCEffect *)effect uniforms:(NSM
172
162
173
163
CCEffectRenderTarget *rt = nil ;
174
164
175
- CCEFFECT_DEBUG_PUSH_GROUP ( renderer) ;
165
+ [ renderer pushGroup ] ;
176
166
if (directRendering)
177
167
{
178
168
renderPass.transform = *transform;
@@ -194,7 +184,7 @@ -(void)drawSprite:(CCSprite *)sprite withEffect:(CCEffect *)effect uniforms:(NSM
194
184
[self restoreRenderTargetWithRenderer: renderer];
195
185
[renderPass end ];
196
186
}
197
- CCEFFECT_DEBUG_POP_GROUP ( renderer, renderPass.debugLabel ) ;
187
+ [ renderer popGroupWithDebugLabel: renderPass.debugLabel globalSortOrder: 0 ] ;
198
188
199
189
previousPassRT = rt;
200
190
}
You can’t perform that action at this time.
0 commit comments