1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-25 15:37:42 +00:00

Add Image.load_exr_from_buffer and enable tinyexr by default

This commit is contained in:
metamuffin
2025-01-08 00:40:08 +01:00
parent b79fe2e020
commit 6145b0ca29
8 changed files with 52 additions and 4 deletions

View File

@@ -546,6 +546,8 @@ Ref<Image> DisplayServerWayland::clipboard_get_image() const {
err = image->load_tga_from_buffer(wayland_thread.selection_get_mime("image/x-targa"));
} else if (wayland_thread.selection_has_mime("image/ktx")) {
err = image->load_ktx_from_buffer(wayland_thread.selection_get_mime("image/ktx"));
} else if (wayland_thread.selection_has_mime("image/x-exr")) {
err = image->load_exr_from_buffer(wayland_thread.selection_get_mime("image/x-exr"));
}
ERR_FAIL_COND_V(err != OK, Ref<Image>());