mirror of
https://github.com/godotengine/godot.git
synced 2025-12-07 22:00:10 +00:00
Add Image.load_exr_from_buffer and enable tinyexr by default
This commit is contained in:
parent
b79fe2e020
commit
6145b0ca29
8 changed files with 52 additions and 4 deletions
|
|
@ -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>());
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue