src/video/uikit/SDL_uikitopenglview.m
branchiOS-improvements
changeset 9524 9de159f9cefd
parent 9520 6a655264dd47
child 9525 64e3f446d6d7
equal deleted inserted replaced
9523:9cbd69cac7ed 9524:9de159f9cefd
   110         /* Get the layer */
   110         /* Get the layer */
   111         CAEAGLLayer *eaglLayer = (CAEAGLLayer *)self.layer;
   111         CAEAGLLayer *eaglLayer = (CAEAGLLayer *)self.layer;
   112 
   112 
   113         eaglLayer.opaque = YES;
   113         eaglLayer.opaque = YES;
   114         eaglLayer.drawableProperties = @{
   114         eaglLayer.drawableProperties = @{
   115             kEAGLDrawablePropertyRetainedBacking: @(retained),
   115             kEAGLDrawablePropertyRetainedBacking:@(retained),
   116             kEAGLDrawablePropertyColorFormat: colorFormat
   116             kEAGLDrawablePropertyColorFormat:colorFormat
   117         };
   117         };
   118 
   118 
   119         /* Set the appropriate scale (for retina display support) */
   119         /* Set the appropriate scale (for retina display support) */
   120         self.contentScaleFactor = scale;
   120         self.contentScaleFactor = scale;
   121 
   121