Unverified Commit d1b97510 authored by Ivan Matkov's avatar Ivan Matkov Committed by GitHub

Set framebufferOnly = false (#733)

parent c5cdb928
...@@ -102,6 +102,7 @@ JNIEXPORT jlong JNICALL Java_org_jetbrains_skiko_redrawer_MetalRedrawer_createMe ...@@ -102,6 +102,7 @@ JNIEXPORT jlong JNICALL Java_org_jetbrains_skiko_redrawer_MetalRedrawer_createMe
CGFloat transparent[] = { 0.0f, 0.0f, 0.0f, 0.0f }; CGFloat transparent[] = { 0.0f, 0.0f, 0.0f, 0.0f };
device.layer.backgroundColor = CGColorCreate(CGColorSpaceCreateDeviceRGB(), transparent); device.layer.backgroundColor = CGColorCreate(CGColorSpaceCreateDeviceRGB(), transparent);
device.layer.opaque = NO; device.layer.opaque = NO;
device.layer.framebufferOnly = NO;
if (transparency) if (transparency)
{ {
......
...@@ -167,6 +167,7 @@ internal class MetalLayer : CAMetalLayer { ...@@ -167,6 +167,7 @@ internal class MetalLayer : CAMetalLayer {
this.backgroundColor = this.backgroundColor =
CGColorCreate(CGColorSpaceCreateDeviceRGB(), it.addressOf(0)) CGColorCreate(CGColorSpaceCreateDeviceRGB(), it.addressOf(0))
} }
this.framebufferOnly = false
skiaLayer.nsView.layer = this skiaLayer.nsView.layer = this
skiaLayer.nsView.wantsLayer = true skiaLayer.nsView.wantsLayer = true
this.contentsGravity = kCAGravityTopLeft; this.contentsGravity = kCAGravityTopLeft;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment