From 5100efdfa9e0ad8ee71eb41238a16746dd3dd76c Mon Sep 17 00:00:00 2001 From: ZhiqianXia Date: Tue, 9 Feb 2021 09:42:48 +0800 Subject: [PATCH] Cannot specify atomic counter with location. Signed-off-by: ZhiqianXia --- glslang/MachineIndependent/ParseHelper.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/glslang/MachineIndependent/ParseHelper.cpp b/glslang/MachineIndependent/ParseHelper.cpp index 9ffa298e..581ef9f2 100644 --- a/glslang/MachineIndependent/ParseHelper.cpp +++ b/glslang/MachineIndependent/ParseHelper.cpp @@ -5768,7 +5768,7 @@ void TParseContext::layoutObjectCheck(const TSourceLoc& loc, const TSymbol& symb if (qualifier.isShaderRecord()) error(loc, "can only specify on a buffer block", "shaderRecordNV", ""); if (qualifier.hasLocation() && type.isAtomic()) - error(loc, "cannot specify on atomic counter", "atomic_uint", ""); + error(loc, "cannot specify on atomic counter", "location", ""); } break; default: