no expression type for OpSRem

fix issue#582
This commit is contained in:
Jin Zhou 2018-05-22 00:44:34 -04:00 committed by Hans-Kristian Arntzen
parent f1eacba244
commit e792cd6160

View File

@ -6664,6 +6664,10 @@ void CompilerGLSL::emit_instruction(const Instruction &instruction)
UFOP(transpose);
break;
case OpSRem:
BOP_CAST(%, SPIRType::Int);
break;
case OpSDiv:
BOP_CAST(/, SPIRType::Int);
break;