shaders: Fix GCC and clang build issues.

This commit is contained in:
bunnei 2018-04-14 14:09:32 -04:00
parent 86135864da
commit 0d408b965b
3 changed files with 5 additions and 5 deletions

View file

@ -131,7 +131,7 @@ public:
}
template <typename... T>
void Create(bool separable_program = false, T... shaders) {
void Create(bool separable_program, T... shaders) {
if (handle != 0)
return;
handle = GLShader::LoadProgram(separable_program, shaders...);

View file

@ -236,7 +236,7 @@ private:
switch (OpCode::GetInfo(instr.opcode).type) {
case OpCode::Type::Arithmetic: {
ASSERT(!instr.alu.abs_d, "unimplemented");
ASSERT(!instr.alu.abs_d);
std::string dest = GetRegister(instr.gpr0);
std::string op_a = instr.alu.negate_a ? "-" : "";