unity will report error if the external texture's width or height is 0. In this PR, we fix it
}
bool _recreateRenderTexture(int width, int height, float devicePixelRatio) {
width = Mathf.Max(1, width);
height = Mathf.Max(1, height);
if (renderTexture != null && _width == width && _height == height &&
this.devicePixelRatio == devicePixelRatio) {
return false;