OSDN Git Service

Revert "MetalSurface: set layer.device to a ref of the system default device."
[android-x86/external-swiftshader.git] / src / WSI / MetalSurface.mm
index f88689e..c31248a 100644 (file)
@@ -40,7 +40,6 @@ public:
         {
             layer = (CAMetalLayer*)[obj retain];
             layer.framebufferOnly = false;
-            layer.device = MTLCreateSystemDefaultDevice();
         }
         else
         {
@@ -69,7 +68,6 @@ public:
     {
         if(layer)
         {
-            [layer.device release];
             [layer release];
         }
         if(view)