Skip to content

Commit

Permalink
Don't apply cast from main texture display into overlay. Closes #3094
Browse files Browse the repository at this point in the history
* 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.
  • Loading branch information
baldurk committed Oct 25, 2023
1 parent dd4e0d4 commit ea4c034
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions renderdoc/replay/replay_output.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down

0 comments on commit ea4c034

Please sign in to comment.