src/video/cocoa/SDL_cocoametalview.m
changeset 11388 16b174adc603
parent 11367 e8fc755a89e8
child 11402 d459d8934897
     1.1 --- a/src/video/cocoa/SDL_cocoametalview.m	Mon Aug 28 01:59:53 2017 -0700
     1.2 +++ b/src/video/cocoa/SDL_cocoametalview.m	Mon Aug 28 02:30:41 2017 -0700
     1.3 @@ -94,8 +94,9 @@
     1.4      SDL_cocoametalview *metalview
     1.5          = [[SDL_cocoametalview alloc] initWithFrame:view.frame
     1.6                         useHighDPI:(window->flags & SDL_WINDOW_ALLOW_HIGHDPI)];
     1.7 +    // Instantiate the CAMetalLayer
     1.8 +    metalview.wantsLayer = YES;
     1.9      [view addSubview:metalview];
    1.10 -  
    1.11      return metalview;
    1.12  }
    1.13