diff options
| author | Rémi Verschelde <remi@verschelde.fr> | 2021-03-29 10:41:22 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-03-29 10:41:22 +0200 |
| commit | bc29f4bca158bbf3a24030cd616f162706e1646c (patch) | |
| tree | bcac4f2ce34607cad2cc1d06337c869c6b1c5321 /drivers | |
| parent | b2eb838781f2d2c323c573d4e9ebb3c47d2c6397 (diff) | |
| parent | fd30c36985c6a5de09daf897800c36acb8c2c49a (diff) | |
Merge pull request #47435 from madmiraal/rename-texture-get_data
Rename Texture.get_data() to get_image()
Diffstat (limited to 'drivers')
| -rw-r--r-- | drivers/png/resource_saver_png.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/png/resource_saver_png.cpp b/drivers/png/resource_saver_png.cpp index f47fc403cc..b737a287d1 100644 --- a/drivers/png/resource_saver_png.cpp +++ b/drivers/png/resource_saver_png.cpp @@ -41,7 +41,7 @@ Error ResourceSaverPNG::save(const String &p_path, const RES &p_resource, uint32 ERR_FAIL_COND_V_MSG(!texture.is_valid(), ERR_INVALID_PARAMETER, "Can't save invalid texture as PNG."); ERR_FAIL_COND_V_MSG(!texture->get_width(), ERR_INVALID_PARAMETER, "Can't save empty texture as PNG."); - Ref<Image> img = texture->get_data(); + Ref<Image> img = texture->get_image(); Error err = save_image(p_path, img); |