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
This commit is contained in:
Jake Turner
2026-03-13 10:27:41 +00:00
parent 0fd4e8cff7
commit e48450cc53
+6 -1
View File
@@ -206,7 +206,12 @@ public:
}
rdcarray<ResourceDescription> GetResources() { return m_Resources; }
rdcarray<TextureDescription> 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 &params,
bytebuf &data)
{