From a721984a85925a17ae0e43a2198fbc4762d76798 Mon Sep 17 00:00:00 2001 From: Mikko Rasa Date: Wed, 31 Mar 2021 21:02:21 +0300 Subject: [PATCH] Always remove location qualifier if not supported --- source/glsl/compatibility.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) 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()) -- 2.45.2