mirror of
https://github.com/Relintai/pandemonium_engine.git
synced 2025-01-23 17:47:17 +01:00
Fix Image::bump_map_to_normal_map incorrectly keeping mipmap flag
(cherry picked from commit 1fa8b3dd420301dd5c2ad99b6bead6cffe1d4995)
This commit is contained in:
parent
238cd5d5bf
commit
15f2a58915
@ -3108,6 +3108,7 @@ Ref<Image> Image::rgbe_to_srgb() {
|
||||
void Image::bumpmap_to_normalmap(float bump_scale) {
|
||||
ERR_FAIL_COND(!_can_modify(format));
|
||||
ERR_FAIL_COND_MSG(write_lock.ptr(), "Cannot modify image when it is locked.");
|
||||
clear_mipmaps();
|
||||
convert(Image::FORMAT_RF);
|
||||
|
||||
PoolVector<uint8_t> result_image; //rgba output
|
||||
|
Loading…
Reference in New Issue
Block a user