mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-05-26 11:50:59 +00:00
Fix some crashes exporting HTML pipeline state on vulkan
This commit is contained in:
@@ -3367,14 +3367,14 @@ void VulkanPipelineStateViewer::exportHTML(QXmlStreamWriter &xml, const VKPipe::
|
||||
QString name;
|
||||
if(b.compileConstants)
|
||||
name = tr("Specialization constants");
|
||||
else if(descriptorBind->inlineBlock)
|
||||
else if(descriptorBind && descriptorBind->inlineBlock)
|
||||
name = tr("Inline uniforms");
|
||||
else
|
||||
name = tr("Push constants");
|
||||
|
||||
qulonglong offset = 0, size = 0;
|
||||
|
||||
if(descriptorBind->inlineBlock)
|
||||
if(descriptorBind && descriptorBind->inlineBlock)
|
||||
{
|
||||
offset = descriptorBind->byteOffset;
|
||||
size = descriptorBind->byteSize;
|
||||
@@ -3632,7 +3632,7 @@ void VulkanPipelineStateViewer::exportHTML(QXmlStreamWriter &xml, const VKPipe::
|
||||
w = buf->length;
|
||||
h = 0;
|
||||
d = 0;
|
||||
a = 0;
|
||||
arr = 0;
|
||||
format = lit("-");
|
||||
|
||||
viewParams = tr("Byte Range: %1").arg(formatByteRange(buf, &descriptorBind));
|
||||
|
||||
Reference in New Issue
Block a user