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

This way if it renders to itself, we will have the right size and format.  Hopefully no major speed impact.  May help #6689.

Also, a small crashfix.  Can merge separately.

-[Unknown]