2
0
Эх сурвалжийг харах

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 жил өмнө
parent
commit
5fcb03f6b6

+ 1 - 1
scene/resources/texture.h

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