浏览代码

Changed ImageTexture image cache type to the correct one, fixes #24971

The original attempt to fix the issue was accidentally using the wrong
type for the image cache. This change fixes that.
Daniel Rakos 6 年之前
父节点
当前提交
5fcb03f6b6
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      scene/resources/texture.h

+ 1 - 1
scene/resources/texture.h

@@ -111,7 +111,7 @@ private:
 	Size2 size_override;
 	float lossy_storage_quality;
 	mutable Ref<BitMap> alpha_cache;
-	Ref<ImageTexture> image_cache;
+	Ref<Image> image_cache;
 
 protected:
 	virtual void reload_from_file();