#25215·bevy

Screenshot::image() no longer works with off-screen textures not attached to a Camera's RenderTarget

Author: MisteryDustCreated Jul 29, 2026Updated Sep 28, 2026
LabelsC-BugA-RenderingS-Needs-Investigation

Bevy version and features

bevy = { version = "0.19.0", default-features = false, features = [ "android-game-activity", "async_executor", "bevy_anti_alias", "bevy_asset", "bevy_camera", "bevy_color", "bevy_core_pipeline", "bevy_gizmos", "bevy_gizmos_render", "bevy_gltf", "bevy_image", "bevy_input_focus", "bevy_light", "bevy_log", "bevy_mesh", "bevy_mikktspace", "bevy_pbr", "bevy_picking", "bevy_post_process", "bevy_render", "bevy_scene", "bevy_shader", "bevy_state", "bevy_text", "bevy_ui", "bevy_ui_render", "bevy_window", "bevy_winit", "default_font", "hdr", "jpeg", "ktx2", "mesh_picking", "multi_threaded", "png", "reflect_auto_register", "std", "sysinfo_plugin", "tonemapping_luts", "ui_picking", "wayland", "webgl2", "x11", "zstd_rust", ] }

What you did

I created an off-screen texture via myself, and wrote content to it using my own rendering pipeline—without attaching it to any Camera's RenderTarget. Then I called Screenshot::image(image_handle) to save the texture content as an image file.

Previously, this workflow worked perfectly: the screenshot API would capture the current content of any valid image handle, regardless of whether it belonged to a camera's render target.

What went wrong

Now, Screenshot::image(image_handle) no longer works for off-screen textures.

What I expected: The API to output the texture's current pixel data as an image, just like it did in earlier versions.

What actually happened: The output is blank. It seems the screenshot function now requires the image_handle to be strictly tied to a Camera's RenderTarget::Image(). To get any usable output, I have to move my rendering logic into the PostProcess stage and attach the texture to a camera.

Additional information

Question: Is this change intentional (e.g., design decision or optimization), or is it a regression? If intentional, do you plan to restore support for off-screen textures in future releases? Or should I assume this is no longer supported and implement my own export logic?