mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-07-08 08:40:55 +00:00
Only export NULLs if something actually went wrong!
This commit is contained in:
@@ -3128,7 +3128,10 @@ void BufferViewer::exportData(const BufferExport ¶ms)
|
||||
bytes += d.stride * idx;
|
||||
|
||||
if(bytes + d.byteSize <= (const char *)d.end)
|
||||
{
|
||||
f->write(bytes, d.byteSize);
|
||||
continue;
|
||||
}
|
||||
}
|
||||
|
||||
// if we didn't continue above, something was wrong, so write nulls
|
||||
|
||||
Reference in New Issue
Block a user