mirror of
https://github.com/xenia-project/xenia.git
synced 2025-12-06 07:12:03 +01:00
Assert on failure to compile glsl and unimplemented shader instrs.
This commit is contained in:
parent
c28cbba00c
commit
98194f0482
|
|
@ -337,6 +337,7 @@ bool GL4Shader::CompileProgram(std::string source) {
|
||||||
const_cast<char*>(info_log.data()));
|
const_cast<char*>(info_log.data()));
|
||||||
PLOGE("Unable to link program: %s", info_log.c_str());
|
PLOGE("Unable to link program: %s", info_log.c_str());
|
||||||
error_log_ = std::move(info_log);
|
error_log_ = std::move(info_log);
|
||||||
|
assert_always("Unable to link generated shader");
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1390,6 +1390,7 @@ bool GL4ShaderTranslator::TranslateALU(const instr_alu_t* alu, int sync) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
|
assert_always();
|
||||||
Append(" // <UNIMPLEMENTED>\n");
|
Append(" // <UNIMPLEMENTED>\n");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
@ -1440,6 +1441,7 @@ bool GL4ShaderTranslator::TranslateALU(const instr_alu_t* alu, int sync) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
|
// assert_always();
|
||||||
Append(" // <UNIMPLEMENTED>\n");
|
Append(" // <UNIMPLEMENTED>\n");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue