You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-24 15:26:15 +00:00
Add Image.load_exr_from_buffer and enable tinyexr by default
This commit is contained in:
@@ -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>());
|
||||
|
||||
Reference in New Issue
Block a user