src/render/metal/SDL_render_metal.m
changeset 12382 03d0bddca61b
parent 12381 dc9108cd4340
child 12384 b1f5162fd621
equal deleted inserted replaced
12381:dc9108cd4340 12382:03d0bddca61b
   551         mtltexdesc.pixelFormat = MTLPixelFormatRG8Unorm;
   551         mtltexdesc.pixelFormat = MTLPixelFormatRG8Unorm;
   552         mtltexdesc.width = (texture->w + 1) / 2;
   552         mtltexdesc.width = (texture->w + 1) / 2;
   553         mtltexdesc.height = (texture->h + 1) / 2;
   553         mtltexdesc.height = (texture->h + 1) / 2;
   554     }
   554     }
   555 
   555 
   556     if (yuv || nc12) {
   556     if (yuv || nv12) {
   557         mtltexture_uv = [data.mtldevice newTextureWithDescriptor:mtltexdesc];
   557         mtltexture_uv = [data.mtldevice newTextureWithDescriptor:mtltexdesc];
   558         if (mtltexture_uv == nil) {
   558         if (mtltexture_uv == nil) {
   559 #if !__has_feature(objc_arc)
   559 #if !__has_feature(objc_arc)
   560             [mtltexture release];
   560             [mtltexture release];
   561 #endif
   561 #endif