From 380ada79d72099f9647731044d84cdb364ccdcdc Mon Sep 17 00:00:00 2001 From: Graham Date: Sun, 16 Aug 2020 10:18:55 +0100 Subject: [PATCH] Remove autoresizingMask It isn't required - AWT resizes the CALayer when the size of the Canvas changes. I think this might be left over from the insets hack. --- gl-natives/src/main/c/jaggl.c | 1 - 1 file changed, 1 deletion(-) diff --git a/gl-natives/src/main/c/jaggl.c b/gl-natives/src/main/c/jaggl.c index 44c51ea..c117c87 100644 --- a/gl-natives/src/main/c/jaggl.c +++ b/gl-natives/src/main/c/jaggl.c @@ -227,7 +227,6 @@ static void *jaggl_proc_addr(const char *name) { self.asynchronous = NO; self.opaque = YES; self.needsDisplayOnBoundsChange = YES; - self.autoresizingMask = kCALayerWidthSizable | kCALayerHeightSizable; } lock = [[NSLock alloc] init]; return self;