In Pixel History View do not force shaderOut to show four components

Matches the formatting used for "Tex Before" and "Tex After"
This commit is contained in:
Jake Turner
2024-02-03 07:04:01 +00:00
parent 364f5998c2
commit e254e66ae4
+2 -5
View File
@@ -305,7 +305,7 @@ public:
return tr("No Pixel\nShader\nBound");
if(mod.directShaderWrite)
return tr("Tex Before\n\n") + modString(mod.preMod);
return tr("Shader Out\n\n") + modString(mod.shaderOut, 4);
return tr("Shader Out\n\n") + modString(mod.shaderOut);
}
}
@@ -514,7 +514,7 @@ private:
(int)(255.0f * b + 0.5f)));
}
QString modString(const ModificationValue &val, int forceComps = 0) const
QString modString(const ModificationValue &val) const
{
QString s;
@@ -523,9 +523,6 @@ private:
int numComps = (int)(m_Tex->format.compCount);
if(forceComps > 0)
numComps = forceComps;
static const QString colourLetterPrefix[] = {lit("R: "), lit("G: "), lit("B: "), lit("A: ")};
if(!m_IsDepth)