Merge pull request #526 from taisei-project/strip-uniform-location

Strip uniform locations for ESSL < 3.00 and GLSL < 4.30
This commit is contained in:
Hans-Kristian Arntzen 2018-04-09 08:22:55 +02:00 committed by GitHub
commit 6bdd775936
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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;
}