src/video/uikit/SDL_uikitopenglview.m
branchgsoc2008_iphone
changeset 2411 ec93e20ff04e
parent 2403 e9a1eed243c9
child 2425 491958a6c881
equal deleted inserted replaced
2410:3fc556a036d8 2411:ec93e20ff04e
   134 	[EAGLContext setCurrentContext:context];
   134 	[EAGLContext setCurrentContext:context];
   135 }
   135 }
   136 
   136 
   137 
   137 
   138 - (void)swapBuffers {
   138 - (void)swapBuffers {
   139 	
       
   140 	
       
   141 	glBindRenderbufferOES(GL_RENDERBUFFER_OES, viewRenderbuffer);
   139 	glBindRenderbufferOES(GL_RENDERBUFFER_OES, viewRenderbuffer);
   142 	if (![context presentRenderbuffer:GL_RENDERBUFFER_OES]) {
   140 	if (![context presentRenderbuffer:GL_RENDERBUFFER_OES]) {
   143 		NSLog(@"Could not swap buffers");
   141 		NSLog(@"Could not swap buffers");
   144 	}
   142 	}
   145 }
   143 }