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:
baldurk
2021-02-24 13:52:07 +00:00
parent 4de38aef1e
commit d906e23f32
+2 -1
View File
@@ -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;