From: Mikko Rasa Date: Thu, 6 Oct 2022 11:09:30 +0000 (+0300) Subject: Check the flat qualifier from the correct member X-Git-Url: http://git.tdb.fi/?a=commitdiff_plain;h=refs%2Fheads%2Fmaster;p=libs%2Fgl.git Check the flat qualifier from the correct member --- 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);