From 98a329670227c726a5d7a196e5cba8dbdd54301b Mon Sep 17 00:00:00 2001 From: Juan Linietsky Date: Wed, 17 May 2017 07:36:47 -0300 Subject: Removal of Image from Variant, converted to a Resource. --- modules/etc1/texture_loader_pkm.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'modules/etc1/texture_loader_pkm.cpp') diff --git a/modules/etc1/texture_loader_pkm.cpp b/modules/etc1/texture_loader_pkm.cpp index 9817de3a0f..c04528d2a0 100644 --- a/modules/etc1/texture_loader_pkm.cpp +++ b/modules/etc1/texture_loader_pkm.cpp @@ -85,7 +85,7 @@ RES ResourceFormatPKM::load(const String &p_path, const String &p_original_path, int width = h.origWidth; int height = h.origHeight; - Image img(width, height, mipmaps, Image::FORMAT_ETC, src_data); + Ref img = memnew(Image(width, height, mipmaps, Image::FORMAT_ETC, src_data)); Ref texture = memnew(ImageTexture); texture->create_from_image(img); -- cgit v1.2.3