Skip to content

Commit 3bf4c90

Browse files
Alexey Ushakovmrserb
authored andcommitted
8264317: Lanai: IncorrectUnmanagedImageRotatedClip.java fails on apple M1
Reviewed-by: serb
1 parent f1f2afd commit 3bf4c90

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

src/java.desktop/macosx/native/libawt_lwawt/java2d/metal/MTLClip.m

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -310,6 +310,7 @@ - (NSString *)getDescription __unused {
310310
clearPassDescriptor.stencilAttachment.texture = _stencilTextureRef;
311311
clearPassDescriptor.stencilAttachment.clearStencil = 0;
312312
clearPassDescriptor.stencilAttachment.loadAction = MTLLoadActionClear;
313+
clearPassDescriptor.stencilAttachment.storeAction = MTLStoreActionStore;
313314

314315
id<MTLCommandBuffer> commandBuf = [_mtlc createCommandBuffer];
315316
id <MTLRenderCommandEncoder> clearEncoder = [commandBuf renderCommandEncoderWithDescriptor:clearPassDescriptor];

test/jdk/java/awt/image/DrawImage/IncorrectUnmanagedImageRotatedClip.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@
4545
/**
4646
* @test
4747
* @key headful
48-
* @bug 8059942
48+
* @bug 8059942 8264317
4949
* @summary Tests rotated clip when unmanaged image is drawn to VI.
5050
* Results of the blit to compatibleImage are used for comparison.
5151
* @run main/othervm -Dsun.java2d.uiScale=1 IncorrectUnmanagedImageRotatedClip

0 commit comments

Comments
 (0)