File tree Expand file tree Collapse file tree 1 file changed +7
-7
lines changed Expand file tree Collapse file tree 1 file changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -66,6 +66,7 @@ @interface CCRenderTextureFBO : NSObject
6666
6767@end
6868
69+
6970@implementation CCRenderTextureFBO
7071
7172- (id )initWithFBO : (GLuint)fbo depthRenderBuffer : (GLuint)depthBuffer
@@ -80,6 +81,7 @@ - (id)initWithFBO:(GLuint)fbo depthRenderBuffer:(GLuint)depthBuffer
8081
8182@end
8283
84+
8385@implementation CCRenderTexture
8486
8587+(id )renderTextureWithWidth : (int )w height : (int )h pixelFormat : (CCTexturePixelFormat) format depthStencilFormat : (GLuint)depthStencilFormat
@@ -373,13 +375,11 @@ - (void)visit:(CCRenderer *)renderer parentTransform:(const GLKMatrix4 *)parentT
373375 if (!_visible) return ;
374376
375377 if (_autoDraw){
376-
377- if (_contentSizeChanged)
378- {
379- [self destroy ];
380- _contentSizeChanged = NO ;
381- }
382-
378+ if (_contentSizeChanged){
379+ [self destroy ];
380+ _contentSizeChanged = NO ;
381+ }
382+
383383 [self begin ];
384384 NSAssert (_renderer == renderer, @" CCRenderTexture error!" );
385385
You can’t perform that action at this time.
0 commit comments