Skip to content
This repository has been archived by the owner. It is now read-only.
Permalink
Browse files
8262750: Crash in J2DDemo after multiple plug/unplug of monitor
  • Loading branch information
jayathirthrao committed Mar 1, 2021
1 parent 50bf043 commit 5bb76c338f7b9d956565527c4ed00b553fbd4bca
Showing with 6 additions and 0 deletions.
  1. +6 −0 src/java.desktop/macosx/native/libawt_lwawt/java2d/metal/MTLRenderQueue.m
@@ -607,6 +607,12 @@ void MTLRenderQueue_CheckPreviousOp(jint op) {
} else {
if (mtlc != NULL) {
[mtlc.encoderManager endEncoder];
MTLCommandBufferWrapper * cbwrapper = [mtlc pullCommandBufferWrapper];
id<MTLCommandBuffer> commandbuf = [cbwrapper getCommandBuffer];
[commandbuf addCompletedHandler:^(id <MTLCommandBuffer> commandbuf) {
[cbwrapper release];
}];
[commandbuf commit];
}
mtlc = newMtlc;
dstOps = NULL;

0 comments on commit 5bb76c3

Please sign in to comment.