This makes it so that the texture obtained by the next frame has the same dimensions as the frame being renderered. Fixes https://github.com/flutter/flutter/issues/38754