Fix code generated from optimized OpCompositeExtract.

This commit is contained in:
Hans-Kristian Arntzen 2016-12-06 17:19:34 +01:00
parent e67f6f85a4
commit ea781e602c

View File

@ -1519,7 +1519,7 @@ string CompilerGLSL::to_expression(uint32_t id)
{
auto &e = get<SPIRExpression>(id);
if (e.base_expression)
return to_expression(e.base_expression) + e.expression;
return to_enclosed_expression(e.base_expression) + e.expression;
else
return e.expression;
}