Skip to content

Commit

Permalink
In Pixel History View do not force shaderOut to show four components
Browse files Browse the repository at this point in the history
Matches the formatting used for "Tex Before" and "Tex After"
  • Loading branch information
Zorro666 committed Feb 13, 2024
1 parent 0b3a873 commit cf19d7d
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions qrenderdoc/Windows/PixelHistoryView.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -305,7 +305,7 @@ class PixelHistoryItemModel : public QAbstractItemModel
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);
}
}

Expand Down Expand Up @@ -514,7 +514,7 @@ class PixelHistoryItemModel : public QAbstractItemModel
(int)(255.0f * b + 0.5f)));
}

QString modString(const ModificationValue &val, int forceComps = 0) const
QString modString(const ModificationValue &val) const
{
QString s;

Expand All @@ -523,9 +523,6 @@ class PixelHistoryItemModel : public QAbstractItemModel

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)
Expand Down

0 comments on commit cf19d7d

Please sign in to comment.