Fix formatting of blend factor in pipeline state

This commit is contained in:
baldurk
2017-05-15 10:11:55 +01:00
parent 870f0cc166
commit 08fa2ec411
4 changed files with 16 additions and 16 deletions
@@ -1887,10 +1887,10 @@ void GLPipelineStateViewer::setState()
ui->blends->verticalScrollBar()->setValue(vs);
ui->blendFactor->setText(QFormatStr("%1, %2, %3, %4")
.arg(state.m_FB.m_Blending.BlendFactor[0], 2)
.arg(state.m_FB.m_Blending.BlendFactor[1], 2)
.arg(state.m_FB.m_Blending.BlendFactor[2], 2)
.arg(state.m_FB.m_Blending.BlendFactor[3], 2));
.arg(state.m_FB.m_Blending.BlendFactor[0], 0, 'f', 2)
.arg(state.m_FB.m_Blending.BlendFactor[1], 0, 'f', 2)
.arg(state.m_FB.m_Blending.BlendFactor[2], 0, 'f', 2)
.arg(state.m_FB.m_Blending.BlendFactor[3], 0, 'f', 2));
ui->depthEnabled->setPixmap(state.m_DepthState.DepthEnable ? tick : cross);
ui->depthFunc->setText(ToQStr(state.m_DepthState.DepthFunc));