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
66
66
67
67
@end
68
68
69
+
69
70
@implementation CCRenderTextureFBO
70
71
71
72
- (id )initWithFBO : (GLuint)fbo depthRenderBuffer : (GLuint)depthBuffer
@@ -80,6 +81,7 @@ - (id)initWithFBO:(GLuint)fbo depthRenderBuffer:(GLuint)depthBuffer
80
81
81
82
@end
82
83
84
+
83
85
@implementation CCRenderTexture
84
86
85
87
+(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
373
375
if (!_visible) return ;
374
376
375
377
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
+
383
383
[self begin ];
384
384
NSAssert (_renderer == renderer, @" CCRenderTexture error!" );
385
385
You can’t perform that action at this time.
0 commit comments