Fixed the render texture to be rebuilt properly.