diff --git a/src/sksl/ir/SkSLLayout.h b/src/sksl/ir/SkSLLayout.h index 5c99807ab5..50c88b45c9 100644 --- a/src/sksl/ir/SkSLLayout.h +++ b/src/sksl/ir/SkSLLayout.h @@ -181,7 +181,7 @@ struct Layout { separator = ", "; } if (fInputAttachmentIndex >= 0) { - result += separator + "input_attachment_index = " + to_string(fBuiltin); + result += separator + "input_attachment_index = " + to_string(fInputAttachmentIndex); separator = ", "; } if (Format::kUnspecified != fFormat) {