diff --git a/renderdocui/Windows/PixelHistoryView.cs b/renderdocui/Windows/PixelHistoryView.cs index b613e7cb7..d24c5b4ea 100644 --- a/renderdocui/Windows/PixelHistoryView.cs +++ b/renderdocui/Windows/PixelHistoryView.cs @@ -244,7 +244,7 @@ namespace renderdocui.Windows string name = String.Format("Primitive {0}\n", mod.primitiveID); - ResourceFormat fmt = new ResourceFormat(FormatComponentType.Float, 4, 4); + ResourceFormat fmt = new ResourceFormat(floatTex ? FormatComponentType.Float : texture.format.compType, 4, 4); string shadOutVal = "Shader Out\n\n" + ModificationValueString(mod.shaderOut, fmt, depth); string postModVal = "Tex After\n\n" + ModificationValueString(mod.postMod, texture.format, depth);