mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-05-12 21:10:42 +00:00
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:
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user