File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -61,6 +61,7 @@ -(id)initWithWidth:(int)width height:(int)height pixelFormat:(CCTexturePixelForm
61
61
{
62
62
_effectRenderer = [[CCEffectRenderer alloc ] init ];
63
63
_allocatedSize = CGSizeMake (0 .0f , 0 .0f );
64
+ self.clearFlags = GL_COLOR_BUFFER_BIT;
64
65
}
65
66
return self;
66
67
}
@@ -208,7 +209,7 @@ -(void)draw:(CCRenderer *)renderer transform:(const GLKMatrix4 *)transform
208
209
// remainder of the effects.
209
210
[self begin ];
210
211
211
- [_renderer enqueueClear: GL_COLOR_BUFFER_BIT color: _clearColor depth: self .clearDepth stencil: self .clearStencil globalSortOrder: NSIntegerMin];
212
+ [_renderer enqueueClear: self .clearFlags color: _clearColor depth: self .clearDepth stencil: self .clearStencil globalSortOrder: NSIntegerMin];
212
213
213
214
// ! make sure all children are drawn
214
215
[self sortAllChildren ];
You can’t perform that action at this time.
0 commit comments