mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-05-13 05:20:45 +00:00
Support a NULL window for functions that only need it for dialogs
* Primarily useful for Python where threading can cause problems, and there's no need.
This commit is contained in:
@@ -105,13 +105,16 @@ rdcstr SPIRVDisassembler::DisassembleShader(QWidget *window, const ShaderReflect
|
||||
|
||||
if(process.exitStatus() != QProcess::NormalExit || process.exitCode() != 0)
|
||||
{
|
||||
GUIInvoke::call(window, [window]() {
|
||||
RDDialog::critical(
|
||||
window, QApplication::translate("SPIRVDisassembler", "Error running disassembler"),
|
||||
QApplication::translate(
|
||||
"SPIRVDisassembler",
|
||||
"There was an error invoking the external SPIR-V disassembler."));
|
||||
});
|
||||
if(window)
|
||||
{
|
||||
GUIInvoke::call(window, [window]() {
|
||||
RDDialog::critical(
|
||||
window, QApplication::translate("SPIRVDisassembler", "Error running disassembler"),
|
||||
QApplication::translate(
|
||||
"SPIRVDisassembler",
|
||||
"There was an error invoking the external SPIR-V disassembler."));
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
if(writesToFile)
|
||||
|
||||
Reference in New Issue
Block a user