msg_Dbg(_vd,"Creating framebuffer for layer %p with bounds (%.1f,%.1f,%.1f,%.1f)",self.layer,self.layer.bounds.origin.x,self.layer.bounds.origin.y,self.layer.bounds.size.width,self.layer.bounds.size.height);
[EAGLContextsetCurrentContext:_context];
// Create default framebuffer object. The backing will be allocated for the current layer in -resizeFromLayer
glGenFramebuffersOES(1,&_defaultFramebuffer);// Generate one framebuffer, store it in _defaultFrameBuffer