From 0a8abd433b3052ed99adac4069fef55c6a56ccaa Mon Sep 17 00:00:00 2001 From: Mikko Rasa Date: Thu, 6 Oct 2022 14:09:30 +0300 Subject: [PATCH] Check the flat qualifier from the correct member --- source/glsl/spirv.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/glsl/spirv.cpp b/source/glsl/spirv.cpp index 6d52c20e..4dceb971 100644 --- a/source/glsl/spirv.cpp +++ b/source/glsl/spirv.cpp @@ -1795,7 +1795,7 @@ void SpirVGenerator::visit(VariableDeclaration &var) BuiltinSemantic semantic = get_builtin_semantic(var.name); writer.write_op_decorate(var_id, DECO_BUILTIN, semantic); } - if(var.sampling=="flat") + if(var.interpolation=="flat") writer.write_op_decorate(var_id, DECO_FLAT); if(var.sampling=="centroid") writer.write_op_decorate(var_id, DECO_CENTROID); -- 2.43.0