mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-07-08 08:40:55 +00:00
Disable "Recompress capture" on images
When renderdoc opens an image file, it treats it as a "somewhat special" capture. However compressing it only corrupts the source image file, without doing anything useful. So disable that menu item for "image" captures.
This commit is contained in:
committed by
Baldur Karlsson
parent
76b6d47f9c
commit
784156cc23
@@ -2178,7 +2178,10 @@ void MainWindow::OnCaptureLoaded()
|
||||
|
||||
statusProgress->setVisible(false);
|
||||
|
||||
ui->action_Recompress_Capture->setEnabled(true);
|
||||
// don't allow capture recompress on opened images
|
||||
QString driver = m_Ctx.Replay().GetCaptureAccess()->DriverName();
|
||||
bool is_image = driver == lit("Image");
|
||||
ui->action_Recompress_Capture->setEnabled(!is_image);
|
||||
|
||||
ui->action_Start_Replay_Loop->setEnabled(true);
|
||||
ui->action_Open_RGP_Profile->setEnabled(
|
||||
|
||||
Reference in New Issue
Block a user