[DF_804] Added checking for high edge of texture size.