made swapBuffers call explicit