mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-08-29 01:46:38 +00:00
Calculate bytesize properly for packed formats in mesh viewer
This commit is contained in:
@@ -1714,7 +1714,7 @@ namespace renderdocui.Windows
|
||||
var fmt = bufferFormats[el].format;
|
||||
int byteWidth = (int)fmt.compByteWidth;
|
||||
|
||||
int bytesToRead = (int)(fmt.compByteWidth * fmt.compCount);
|
||||
int bytesToRead = (int)bufferFormats[el].ByteSize;
|
||||
|
||||
byte[] bytes = read.ReadBytes(bytesToRead);
|
||||
rawWriter.Write(bytes);
|
||||
|
||||
Reference in New Issue
Block a user