From e48450cc537d8f443121e272dc9991d2b3208468 Mon Sep 17 00:00:00 2001 From: Jake Turner Date: Fri, 13 Mar 2026 10:11:48 +0000 Subject: [PATCH] ImageViewer get the Custom Texture Description from the proxy Use the cached Texture Description for all other Textures which matches the behaviour of GetTextureData() When saving a texture when a custom visualisation shader is in use: - fixes a crash when saving as HDR or EXT - fixes incorrect image saved to DDS --- renderdoc/core/image_viewer.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/renderdoc/core/image_viewer.cpp b/renderdoc/core/image_viewer.cpp index b4223dbcb..cc4a4ffc5 100644 --- a/renderdoc/core/image_viewer.cpp +++ b/renderdoc/core/image_viewer.cpp @@ -206,7 +206,12 @@ public: } rdcarray GetResources() { return m_Resources; } rdcarray GetTextures() { return {m_TexDetails}; } - TextureDescription GetTexture(ResourceId id) { return m_TexDetails; } + TextureDescription GetTexture(ResourceId id) + { + if(id != m_CustomTexID) + return m_TexDetails; + return m_Proxy->GetTexture(id); + } void GetTextureData(ResourceId tex, const Subresource &sub, const GetTextureDataParams ¶ms, bytebuf &data) {