From 9ffa3342689a7449cbe1f40bbd34bc648575c22a Mon Sep 17 00:00:00 2001 From: baldurk Date: Wed, 23 Nov 2022 11:14:38 +0000 Subject: [PATCH] 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. --- .../Windows/PipelineState/VulkanPipelineStateViewer.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/qrenderdoc/Windows/PipelineState/VulkanPipelineStateViewer.cpp b/qrenderdoc/Windows/PipelineState/VulkanPipelineStateViewer.cpp index 6ff46b738..7d4bd145f 100644 --- a/qrenderdoc/Windows/PipelineState/VulkanPipelineStateViewer.cpp +++ b/qrenderdoc/Windows/PipelineState/VulkanPipelineStateViewer.cpp @@ -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 {