]> git.tdb.fi Git - libs/gl.git/commitdiff
Check the flat qualifier from the correct member master
authorMikko Rasa <tdb@tdb.fi>
Thu, 6 Oct 2022 11:09:30 +0000 (14:09 +0300)
committerMikko Rasa <tdb@tdb.fi>
Thu, 6 Oct 2022 11:09:30 +0000 (14:09 +0300)
source/glsl/spirv.cpp

index 6d52c20ecc9fe4e9928d45f74ef40a5e02fe35ee..4dceb9719a638c8ba6048b1a3509eb5b8555046c 100644 (file)
@@ -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);