mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-07-30 11:21:01 +00:00
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:
@@ -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 ¶ms,
|
||||
bytebuf &data)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user