mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-05-29 21:30:53 +00:00
Fix memory overwrite when saving a single slice of texture
This commit is contained in:
@@ -908,7 +908,7 @@ ResultDetails ReplayController::SaveTexture(const TextureSave &saveData, const r
|
||||
{
|
||||
byte *depthslice = new byte[mipSlicePitch];
|
||||
byte *b = data.data() + mipSlicePitch * sliceOffset;
|
||||
memcpy(depthslice, b, slicePitch);
|
||||
memcpy(depthslice, b, mipSlicePitch);
|
||||
subdata.push_back(depthslice);
|
||||
|
||||
continue;
|
||||
|
||||
Reference in New Issue
Block a user