mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-05-06 01:50:38 +00:00
Clamp progress value to 0.0 - 1.0 before updating progress bar
* Speculative fix for a reported crash
This commit is contained in:
@@ -70,6 +70,7 @@ namespace renderdocui.Windows
|
||||
return;
|
||||
}
|
||||
|
||||
f = Helpers.Clamp(f, 0.0f, 1.0f);
|
||||
progressBar.Value = (int)(progressBar.Maximum * f);
|
||||
}));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user