Implement resource cleanup for RTT.

See azul3d/gfx-gl2#2