diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/gpu/SkGr.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/gpu/SkGr.cpp b/src/gpu/SkGr.cpp index c4bbf487f8..37e4c8f430 100644 --- a/src/gpu/SkGr.cpp +++ b/src/gpu/SkGr.cpp @@ -364,6 +364,9 @@ static inline bool skpaint_to_grpaint_impl(GrContext* context, shaderFP = std::move(*shaderProcessor); } else if (const auto* shader = as_SB(skPaint.getShader())) { shaderFP = shader->asFragmentProcessor(fpArgs); + if (!shaderFP) { + return false; + } } } |