Comment the workaround for layout_for_variable.

This commit is contained in:
Hans-Kristian Arntzen 2016-09-21 08:20:04 +02:00
Родитель 64f62e53ce
Коммит 62d223adda
1 изменённых файлов: 5 добавлений и 1 удалений

Просмотреть файл

@ -804,7 +804,11 @@ bool CompilerGLSL::ssbo_is_std430_packing(const SPIRType &type)
string CompilerGLSL::layout_for_variable(const SPIRVariable &var) string CompilerGLSL::layout_for_variable(const SPIRVariable &var)
{ {
if (is_legacy_es() || (!options.es && options.version < 130)) // FIXME: Come up with a better solution for when to disable layouts.
// Having layouts depend on extensions as well as which types
// of layouts are used. For now, the simple solution is to just disable
// layouts for legacy versions.
if (is_legacy())
return ""; return "";
vector<string> attr; vector<string> attr;