Skip to content

Commit 39fe00a

Browse files
authored
Revert "Revert "fix: Don't dereference null surface props (#154)" (#155)"
This reverts commit de43121.
1 parent de43121 commit 39fe00a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/c/sk_image.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ sk_image_t* sk_image_new_from_picture(sk_picture_t* picture, const sk_isize_t* d
6060
if (cmatrix) {
6161
m = AsMatrix(cmatrix);
6262
}
63-
return ToImage(SkImages::DeferredFromPicture(sk_ref_sp(AsPicture(picture)), *AsISize(dimensions), cmatrix ? &m : nullptr, AsPaint(paint), useFloatingPointBitDepth ? SkImages::BitDepth::kF16 : SkImages::BitDepth::kU8, sk_ref_sp(AsColorSpace(colorSpace)), *AsSurfaceProps(props)).release());
63+
return ToImage(SkImages::DeferredFromPicture(sk_ref_sp(AsPicture(picture)), *AsISize(dimensions), cmatrix ? &m : nullptr, AsPaint(paint), useFloatingPointBitDepth ? SkImages::BitDepth::kF16 : SkImages::BitDepth::kU8, sk_ref_sp(AsColorSpace(colorSpace)), props ? (*AsSurfaceProps(props)).release()) : {});
6464
}
6565

6666
int sk_image_get_width(const sk_image_t* cimage) {

0 commit comments

Comments
 (0)