aboutsummaryrefslogtreecommitdiffstats
path: root/src/nativewindow/native/ios/IOSmisc.m
diff options
context:
space:
mode:
Diffstat (limited to 'src/nativewindow/native/ios/IOSmisc.m')
-rw-r--r--src/nativewindow/native/ios/IOSmisc.m3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/nativewindow/native/ios/IOSmisc.m b/src/nativewindow/native/ios/IOSmisc.m
index 5826b9eef..49fe8325e 100644
--- a/src/nativewindow/native/ios/IOSmisc.m
+++ b/src/nativewindow/native/ios/IOSmisc.m
@@ -342,6 +342,9 @@ JNIEXPORT jlong JNICALL Java_jogamp_nativewindow_ios_IOSUtil_CreateUIWindow0
CAEAGLUIView *uiView = [[CAEAGLUIView alloc] initWithFrame:boundsView];
CAEAGLLayer* l = (CAEAGLLayer*)[uiView layer];
[l setOpaque: YES];
+ l.drawableProperties = [NSDictionary dictionaryWithObjectsAndKeys: /* defaults */
+ [NSNumber numberWithBool:NO], kEAGLDrawablePropertyRetainedBacking, kEAGLColorFormatRGBA8, kEAGLDrawablePropertyColorFormat, nil];
+
[myWindow addSubview: uiView];