Avoid a texture offset if framebuf attach fails.

But, I'm not sure in what case this could happen.
Merge pull request #6532 from unknownbrackets/gpu-minor

Avoid a texture offset if framebuf attach fails