mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-08-19 13:06:38 +00:00
Removing unnecessary addition of the ReplayOutput::GetTextureDisplay.
This member function wasn't required and the TextureDisplay was accessible from within the TexxtureViewer as m_TexDisplay.
This commit is contained in:
committed by
Baldur Karlsson
parent
937c8e7c91
commit
61b227580d
@@ -3377,8 +3377,8 @@ void TextureViewer::on_saveTex_clicked()
|
||||
config.id = id;
|
||||
}
|
||||
|
||||
const auto overlayTexID = m_Output->GetDebugOverlayTexID();
|
||||
const bool hasSelectedOverlay = (m_Output->GetTextureDisplay().overlay != DebugOverlay::NoOverlay);
|
||||
const ResourceId overlayTexID = m_Output->GetDebugOverlayTexID();
|
||||
const bool hasSelectedOverlay = (m_TexDisplay.overlay != DebugOverlay::NoOverlay);
|
||||
const bool hasOverlay = (hasSelectedOverlay && overlayTexID != ResourceId());
|
||||
TextureSaveDialog saveDialog(*texptr, hasOverlay, config, this);
|
||||
int res = RDDialog::show(&saveDialog);
|
||||
|
||||
Reference in New Issue
Block a user