diff --git a/qrenderdoc/Windows/PixelHistoryView.cpp b/qrenderdoc/Windows/PixelHistoryView.cpp index b596b066f..bbcb52c5e 100644 --- a/qrenderdoc/Windows/PixelHistoryView.cpp +++ b/qrenderdoc/Windows/PixelHistoryView.cpp @@ -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)