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:
commit
6bdd775936
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user