[impellerc] remove coffset usage (flutter/engine#39199)

* [impellerc] remove coffset usage

* ++
This commit is contained in:
Jonah Williams 2023-01-27 10:47:56 -08:00 committed by GitHub
parent e31df55438
commit b8974b5199

View File

@ -476,9 +476,8 @@ std::string CompilerSkSL::to_function_args(const TextureFunctionArguments& args,
std::string glsl_args = CompilerGLSL::to_function_args(args, p_forward);
// SkSL only supports coordinates. All other arguments to texture are
// unsupported and will generate invalid SkSL.
if (args.grad_x || args.grad_y || args.lod || args.coffset || args.offset ||
args.sample || args.min_lod || args.sparse_texel || args.bias ||
args.component) {
if (args.grad_x || args.grad_y || args.lod || args.offset || args.sample ||
args.min_lod || args.sparse_texel || args.bias || args.component) {
FLUTTER_CROSS_THROW(
"Only sampler and position arguments are supported in texture() "
"calls.");