Support render-to-offset within a framebuffer.

Fixes #6324.

I don't actually understand why subtracting the offset in setOrtho works for the preview...

-[Unknown]