comparison src/video/uikit/SDL_uikitopenglview.m @ 2425:491958a6c881 gsoc2008_iphone

Removed log messages (printf and NSLog)
author Holmes Futrell <hfutrell@umail.ucsb.edu>
date Fri, 15 Aug 2008 00:42:14 +0000
parents ec93e20ff04e
children d65e44861a15
comparison
equal deleted inserted replaced
2424:ecc18fbfdec3 2425:491958a6c881
117 glRenderbufferStorageOES(GL_RENDERBUFFER_OES, depthBufferFormat, backingWidth, backingHeight); 117 glRenderbufferStorageOES(GL_RENDERBUFFER_OES, depthBufferFormat, backingWidth, backingHeight);
118 glFramebufferRenderbufferOES(GL_FRAMEBUFFER_OES, GL_DEPTH_ATTACHMENT_OES, GL_RENDERBUFFER_OES, depthRenderbuffer); 118 glFramebufferRenderbufferOES(GL_FRAMEBUFFER_OES, GL_DEPTH_ATTACHMENT_OES, GL_RENDERBUFFER_OES, depthRenderbuffer);
119 } 119 }
120 120
121 if(glCheckFramebufferStatusOES(GL_FRAMEBUFFER_OES) != GL_FRAMEBUFFER_COMPLETE_OES) { 121 if(glCheckFramebufferStatusOES(GL_FRAMEBUFFER_OES) != GL_FRAMEBUFFER_COMPLETE_OES) {
122 NSLog(@"failed to make complete framebuffer object %x", glCheckFramebufferStatusOES(GL_FRAMEBUFFER_OES));
123 return NO; 122 return NO;
124 } 123 }
125 /* end create buffers */ 124 /* end create buffers */
126
127 NSLog(@"Done initializing ...");
128
129 } 125 }
130 return self; 126 return self;
131 } 127 }
132 128
133 - (void)setCurrentContext { 129 - (void)setCurrentContext {
135 } 131 }
136 132
137 133
138 - (void)swapBuffers { 134 - (void)swapBuffers {
139 glBindRenderbufferOES(GL_RENDERBUFFER_OES, viewRenderbuffer); 135 glBindRenderbufferOES(GL_RENDERBUFFER_OES, viewRenderbuffer);
140 if (![context presentRenderbuffer:GL_RENDERBUFFER_OES]) { 136 [context presentRenderbuffer:GL_RENDERBUFFER_OES];
141 NSLog(@"Could not swap buffers");
142 }
143 } 137 }
144 138
145 139
146 - (void)layoutSubviews { 140 - (void)layoutSubviews {
147 [EAGLContext setCurrentContext:context]; 141 [EAGLContext setCurrentContext:context];