Track the last drawn width/height/format.

This way we can apply render-to-self effects more correctly.
Avoid a very unlikely fbo leak.
Fix a crash when icon data fails to decode.
Merge pull request #6859 from unknownbrackets/gpu-minor

Keep track of size and format as of last draw per framebuf