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/dds/texture_loader_dds.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'modules/dds') diff --git a/modules/dds/texture_loader_dds.cpp b/modules/dds/texture_loader_dds.cpp index d79b7685d1..4448c80387 100644 --- a/modules/dds/texture_loader_dds.cpp +++ b/modules/dds/texture_loader_dds.cpp @@ -441,7 +441,7 @@ RES ResourceFormatDDS::load(const String &p_path, const String &p_original_path, wb = PoolVector::Write(); } - Image img(width, height, mipmaps - 1, info.format, src_data); + Ref img = memnew(Image(width, height, mipmaps - 1, info.format, src_data)); Ref texture = memnew(ImageTexture); texture->create_from_image(img); -- cgit v1.2.3