Set empty pixmap before setting text on pipeline state labels

* Setting an empty pixmap seems to clear out the text also sometimes. This order
  should always be safer.
This commit is contained in:
baldurk
2022-11-23 11:14:38 +00:00
parent 93bb5acea8
commit 9ffa334268
@@ -2521,12 +2521,12 @@ void VulkanPipelineStateViewer::setState()
if(state.rasterizer.depthBiasEnable)
{
ui->depthBias->setText(Formatter::Format(state.rasterizer.depthBias));
ui->depthBiasClamp->setText(Formatter::Format(state.rasterizer.depthBiasClamp));
ui->slopeScaledBias->setText(Formatter::Format(state.rasterizer.slopeScaledDepthBias));
ui->depthBias->setPixmap(QPixmap());
ui->depthBiasClamp->setPixmap(QPixmap());
ui->slopeScaledBias->setPixmap(QPixmap());
ui->depthBias->setText(Formatter::Format(state.rasterizer.depthBias));
ui->depthBiasClamp->setText(Formatter::Format(state.rasterizer.depthBiasClamp));
ui->slopeScaledBias->setText(Formatter::Format(state.rasterizer.slopeScaledDepthBias));
}
else
{