Add swapBuffers and makeCurrent.