Strip uniform locations for ESSL < 3.00 and GLSL < 430

This commit is contained in:
Andrei Alexeyev 2018-04-07 22:14:35 +03:00
parent 9b8c2c4654
commit 4a43024dba
No known key found for this signature in database
GPG Key ID: 363707CD4C7FE8A4

View File

@ -1166,6 +1166,14 @@ bool CompilerGLSL::can_use_io_location(StorageClass storage)
return false;
}
if (storage == StorageClassUniform || storage == StorageClassUniformConstant)
{
if (options.es && options.version < 310)
return false;
else if (!options.es && options.version < 430)
return false;
}
return true;
}