X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fglsl%2Fspirv.cpp;h=4dceb9719a638c8ba6048b1a3509eb5b8555046c;hb=refs%2Fheads%2Fmaster;hp=6d52c20ecc9fe4e9928d45f74ef40a5e02fe35ee;hpb=2151e4a005fa39ac909457176fb33dd2e816d6f9;p=libs%2Fgl.git 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);