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

8266079: Lanai: AlphaComposite shows differences on Metal compared to OpenGL #62

Closed
wants to merge 3 commits into from
Closed
Changes from 1 commit
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
@@ -71,7 +71,7 @@ - (id) initWithJavaLayer:(jobject)layer
self.leftInset = 0;
self.framebufferOnly = NO;
self.nextDrawableCount = 0;
self.opaque = FALSE;
self.opaque = NO;
CVDisplayLinkCreateWithActiveCGDisplays(&displayLink);
CVDisplayLinkSetOutputCallback(displayLink, &displayLinkCallback, (__bridge void*)self);
return self;
@@ -291,7 +291,7 @@ CVReturn displayLinkCallback(CVDisplayLinkRef displayLink, const CVTimeStamp* no

MTLLayer *mtlLayer = OBJC(layerPtr);
[ThreadUtilities performOnMainThreadWaiting:NO block:^(){
[mtlLayer setOpaque:(BOOL)opaque];
[mtlLayer setOpaque:(opaque == JNI_TRUE)];
}];

JNI_COCOA_EXIT(env);