mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-05-04 17:10:47 +00:00
Fix issue with DDS writing reading from wrong subresource index for data
This commit is contained in:
@@ -915,7 +915,7 @@ bool write_dds_to_file(FILE *f, const write_dds_data &data)
|
||||
uint32_t numdepths = RDCMAX(1U, data.depth >> mip);
|
||||
for(uint32_t d = 0; d < numdepths; d++)
|
||||
{
|
||||
byte *bytedata = data.subresources[d];
|
||||
byte *bytedata = data.subresources[i];
|
||||
|
||||
uint32_t rowlen = RDCMAX(1U, data.width >> mip);
|
||||
uint32_t numRows = RDCMAX(1U, data.height >> mip);
|
||||
|
||||
Reference in New Issue
Block a user