Don't apply cast from main texture display into overlay. Closes #3094

* When we're sourcing from our own texture we don't want to bring in any
  typecast to unorm/uint/etc from the original texture's view. This already
  happens for the main display but we also need to do that for the thumbnail
  context.
This commit is contained in:
baldurk
2023-10-25 17:55:39 +01:00
parent dd4e0d44ad
commit ea4c03402f
+10
View File
@@ -712,7 +712,17 @@ void ReplayOutput::DisplayContext()
m_RenderData.texDisplay.overlay == DebugOverlay::TriangleSizeDraw ||
m_RenderData.texDisplay.overlay == DebugOverlay::TriangleSizePass) &&
m_OverlayResourceId != ResourceId())
{
disp.resourceId = m_OverlayResourceId;
disp.typeCast = CompType::Typeless;
disp.red = disp.green = disp.blue = disp.alpha = true;
disp.rawOutput = false;
disp.customShaderId = ResourceId();
disp.hdrMultiplier = -1.0f;
disp.rangeMin = 0.0f;
disp.rangeMax = 1.0f;
disp.linearDisplayAsGamma = false;
}
const float contextZoom = 8.0f;