mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-09-23 06:05:45 +00:00
Store original texture details in image viewer, rather than patched
* If we need to patch the details we use that for proxy texture upload, but we still want to return the original details to the replay.
This commit is contained in:
@@ -762,13 +762,14 @@ void ImageViewer::RefreshFile()
|
||||
}
|
||||
}
|
||||
|
||||
m_TexDetails = texDetails;
|
||||
|
||||
if(m_TextureID == ResourceId())
|
||||
CreateProxyTexture(texDetails, read_data);
|
||||
|
||||
if(m_TextureID == ResourceId())
|
||||
RDCERR("Couldn't create proxy texture for image file");
|
||||
|
||||
m_TexDetails = texDetails;
|
||||
m_TexDetails.resourceId = m_TextureID;
|
||||
m_TexDetails.byteSize = fileSize;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user