mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-05-29 21:30:53 +00:00
Clamp element size to avoid divide by 0
This commit is contained in:
@@ -731,9 +731,9 @@ void D3D12PipelineStateViewer::setViewDetails(RDTreeWidgetItem *node, const D3D1
|
||||
"elements).\n")
|
||||
.arg(res.byteOffset)
|
||||
.arg(res.byteOffset + res.byteSize)
|
||||
.arg(res.byteSize / res.elementByteSize)
|
||||
.arg(res.byteSize / qMax(1U, res.elementByteSize))
|
||||
.arg(buf->length)
|
||||
.arg(buf->length / res.elementByteSize);
|
||||
.arg(buf->length / qMax(1U, res.elementByteSize));
|
||||
|
||||
viewdetails = true;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user