1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-07 12:30:27 +00:00

Make some Image methods static

This commit is contained in:
kobewi
2022-07-22 20:06:19 +02:00
parent 39534a7aec
commit 072f6feaba
51 changed files with 168 additions and 292 deletions

View File

@@ -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;
}