Assert on failure to compile glsl and unimplemented shader instrs.

This commit is contained in:
Ben Vanik 2015-03-08 21:57:44 -07:00
parent c28cbba00c
commit 98194f0482
2 changed files with 3 additions and 0 deletions

View File

@ -337,6 +337,7 @@ bool GL4Shader::CompileProgram(std::string source) {
const_cast<char*>(info_log.data()));
PLOGE("Unable to link program: %s", info_log.c_str());
error_log_ = std::move(info_log);
assert_always("Unable to link generated shader");
return false;
}

View File

@ -1390,6 +1390,7 @@ bool GL4ShaderTranslator::TranslateALU(const instr_alu_t* alu, int sync) {
return false;
}
} else {
assert_always();
Append(" // <UNIMPLEMENTED>\n");
}
}
@ -1440,6 +1441,7 @@ bool GL4ShaderTranslator::TranslateALU(const instr_alu_t* alu, int sync) {
return false;
}
} else {
// assert_always();
Append(" // <UNIMPLEMENTED>\n");
}
}