Skip to content
This repository has been archived by the owner. It is now read-only.
Permalink
Browse files
8256576: DrawImage/BlitRotateClippedArea fails
  • Loading branch information
Alexey Ushakov committed Nov 19, 2020
1 parent 7979846 commit bcb5b1e9c7d85bc99a1a9c0adfc8fb051f9a4ae0
Showing with 14 additions and 11 deletions.
  1. +14 −11 src/java.desktop/macosx/native/libawt_lwawt/java2d/metal/MTLBlitLoops.m
@@ -434,11 +434,13 @@ jboolean clipDestCoords(
}
#endif // DEBUG_ISOBLIT

clipDestCoords(
&dx1, &dy1, &dx2, &dy2,
&sx1, &sy1, &sx2, &sy2,
dstTex.width, dstTex.height, texture ? NULL : [mtlc.clip getRect]
);
if (!xform) {
clipDestCoords(
&dx1, &dy1, &dx2, &dy2,
&sx1, &sy1, &sx2, &sy2,
dstTex.width, dstTex.height, texture ? NULL : [mtlc.clip getRect]
);
}

SurfaceDataBounds bounds;
bounds.x1 = sx1;
@@ -569,12 +571,13 @@ jboolean clipDestCoords(
}
}
#endif // DEBUG_BLIT

clipDestCoords(
&dx1, &dy1, &dx2, &dy2,
&sx1, &sy1, &sx2, &sy2,
dest.width, dest.height, texture ? NULL : [mtlc.clip getRect]
);
if (!xform) {
clipDestCoords(
&dx1, &dy1, &dx2, &dy2,
&sx1, &sy1, &sx2, &sy2,
dest.width, dest.height, texture ? NULL : [mtlc.clip getRect]
);
}

SurfaceDataRasInfo srcInfo;
srcInfo.bounds.x1 = sx1;

0 comments on commit bcb5b1e

Please sign in to comment.