Never try to rename remapped variables

Because remapping is used to map to builtins.
This commit is contained in:
Robert Konrad 2016-08-13 22:56:08 +02:00
parent 7693656d68
commit 866cb014d1

View File

@ -1026,7 +1026,7 @@ void CompilerGLSL::replace_illegal_names()
auto &var = id.get<SPIRVariable>();
auto &type = get<SPIRType>(var.basetype);
if (!is_builtin_variable(var))
if (!is_builtin_variable(var) && !var.remapped_variable)
{
auto &m = meta[var.self].decoration;
if (m.alias.compare(0, 3, "gl_") == 0)