mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-08-22 14:36:35 +00:00
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:
@@ -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
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user