modules/graphics/src/main/native-glass/mac/GlassLayer3D.m

Print this page

        

*** 66,86 **** } - (id)initWithSharedContext:(CGLContextObj)ctx andClientContext:(CGLContextObj)clCtx withHiDPIAware:(BOOL)HiDPIAware { LOG("GlassLayer3D initWithSharedContext]"); self = [super init]; if (self != nil) { self->_serverPort = MACH_PORT_NULL; self->_remoteLayer = nil; self->_remoteLayerID = 0; ! self->_painterOffscreen = [[GlassOffscreen alloc] initWithContext:clCtx]; ! self->_glassOffscreen = [[GlassOffscreen alloc] initWithContext:ctx]; [self->_glassOffscreen setLayer:self]; LOG(" GlassLayer3D context: %p", ctx); self->isHiDPIAware = HiDPIAware; --- 66,87 ---- } - (id)initWithSharedContext:(CGLContextObj)ctx andClientContext:(CGLContextObj)clCtx withHiDPIAware:(BOOL)HiDPIAware + withIsSwPipe:(BOOL)isSwPipe { LOG("GlassLayer3D initWithSharedContext]"); self = [super init]; if (self != nil) { self->_serverPort = MACH_PORT_NULL; self->_remoteLayer = nil; self->_remoteLayerID = 0; ! self->_painterOffscreen = [[GlassOffscreen alloc] initWithContext:clCtx andIsSwPipe:isSwPipe]; ! self->_glassOffscreen = [[GlassOffscreen alloc] initWithContext:ctx andIsSwPipe:isSwPipe]; [self->_glassOffscreen setLayer:self]; LOG(" GlassLayer3D context: %p", ctx); self->isHiDPIAware = HiDPIAware;