swapBuffers and clear display working