Support render-to-offset within a framebuffer.

Fixes #6324.
Merge pull request #6326 from unknownbrackets/gpu-minor

Support render-to-offset within a framebuffer