JBR-6522 macOS: SIGSEGV at [libawt_lwawt.dylib+0x8eaa8] MTLGC_DestroyMTLGraphicsConfig

Performing flush of pending rendering operation before destroying MTLGraphicsConfig
This commit is contained in:
Alexey Ushakov
2024-02-13 18:23:21 +01:00
committed by Alexey Ushakov
parent b530b4f4cb
commit 2aa3828f59

View File

@@ -655,9 +655,9 @@ Java_sun_java2d_metal_MTLRenderQueue_flushBuffer
CHECK_PREVIOUS_OP(MTL_OP_OTHER);
jlong pConfigInfo = NEXT_LONG(b);
CONTINUE_IF_NULL(mtlc);
[mtlc commitCommandBuffer:YES display:NO];
MTLTR_FreeGlyphCacheAA();
MTLTR_FreeGlyphCacheLCD();
[mtlc.encoderManager endEncoder];
MTLGC_DestroyMTLGraphicsConfig(pConfigInfo);
mtlc = NULL;
break;