Don't need to force specific type for left shifts.

This commit is contained in:
Hans-Kristian Arntzen 2016-05-13 15:30:40 +02:00
parent 45ad58a903
commit ffc5544c0b

View File

@ -2969,8 +2969,11 @@ void CompilerGLSL::emit_instruction(const Instruction &instruction)
break;
case OpShiftLeftLogical:
BOP_CAST(<<, SPIRType::UInt, true);
{
auto type = get<SPIRType>(ops[0]).basetype;
BOP_CAST(<<, type, true);
break;
}
case OpBitwiseOr:
{