Implement OpenGL overriding of surface's flip method.