summaryrefslogtreecommitdiff
path: root/modules/denoise/lightmap_denoiser.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'modules/denoise/lightmap_denoiser.cpp')
-rw-r--r--modules/denoise/lightmap_denoiser.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/denoise/lightmap_denoiser.cpp b/modules/denoise/lightmap_denoiser.cpp
index a0dbd07b10..2b9221bc43 100644
--- a/modules/denoise/lightmap_denoiser.cpp
+++ b/modules/denoise/lightmap_denoiser.cpp
@@ -51,7 +51,7 @@ Ref<Image> LightmapDenoiserOIDN::denoise_image(const Ref<Image> &p_image) {
return p_image;
}
- img->create(img->get_width(), img->get_height(), false, img->get_format(), data);
+ img->set_data(img->get_width(), img->get_height(), false, img->get_format(), data);
return img;
}