Fix swap buffers after renderFrame() was changed to a fixed timestep.