Removed buffer swap from doFrame function.

Clients must manually swap buffers. This is to support reading straight
from the current frame buffer in the batch renderer.