From: Mikko Rasa Date: Wed, 31 Mar 2021 18:02:21 +0000 (+0300) Subject: Always remove location qualifier if not supported X-Git-Url: http://git.tdb.fi/?a=commitdiff_plain;h=a721984a85925a17ae0e43a2198fbc4762d76798;p=libs%2Fgl.git Always remove location qualifier if not supported --- diff --git a/source/glsl/compatibility.cpp b/source/glsl/compatibility.cpp index 193ae123..280a38c9 100644 --- a/source/glsl/compatibility.cpp +++ b/source/glsl/compatibility.cpp @@ -286,12 +286,10 @@ void LegacyConverter::visit(VariableDeclaration &var) else if(stage->type==Stage::FRAGMENT && var.interface=="out") { if(check_extension(&Features::ext_gpu_shader4)) - { stage->locations[var.name] = i->value; - var.layout->qualifiers.erase(i); - } else if(i->value!=0) unsupported("EXT_gpu_shader4 required for multiple fragment shader outputs"); + var.layout->qualifiers.erase(i); } if(var.layout->qualifiers.empty())