Remove unnecessary sRGB conversions

This commit is contained in:
baldurk
2022-06-16 16:30:00 +01:00
parent 0fce39ff04
commit 1eee00f01d
2 changed files with 0 additions and 14 deletions
-7
View File
@@ -953,13 +953,6 @@ void TextureViewer::UI_UpdateStatusText()
float g = qBound(0.0f, m_CurHoverValue.floatValue[1], 1.0f);
float b = qBound(0.0f, m_CurHoverValue.floatValue[2], 1.0f);
if(tex.format.SRGBCorrected() || (tex.creationFlags & TextureCategory::SwapBuffer))
{
r = powf(r, 1.0f / 2.2f);
g = powf(g, 1.0f / 2.2f);
b = powf(b, 1.0f / 2.2f);
}
swatchColor = QColor(int(255.0f * r), int(255.0f * g), int(255.0f * b));
}