Skip to content
This repository has been archived by the owner. It is now read-only.

8262750: Crash in J2DDemo after multiple plug/unplug of monitor #207

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
@@ -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;