mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-10-17 09:39:19 +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:
1 parent
0fd4e8cff7
commit
e48450cc53
1 file changed
+6
-1
@@ -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