Do not add layout qualifiers to variables for GLSL versions that don't support it

This commit is contained in:
rob 2016-09-18 13:18:33 +09:00
parent 4d4e6d7a41
commit 42fe8c31f1

View File

@ -804,6 +804,9 @@ bool CompilerGLSL::ssbo_is_std430_packing(const SPIRType &type)
string CompilerGLSL::layout_for_variable(const SPIRVariable &var)
{
if (is_legacy_es() || (!options.es && options.version < 330))
return "";
vector<string> attr;
auto &dec = meta[var.self].decoration;