src/render/metal/SDL_render_metal.m
changeset 12169 be34b836f738
parent 11958 d7582d7286aa
child 12179 c06be57c5a01
equal deleted inserted replaced
12168:a5459597367f 12169:be34b836f738
   954                     const Uint8 *Yplane, int Ypitch,
   954                     const Uint8 *Yplane, int Ypitch,
   955                     const Uint8 *Uplane, int Upitch,
   955                     const Uint8 *Uplane, int Upitch,
   956                     const Uint8 *Vplane, int Vpitch)
   956                     const Uint8 *Vplane, int Vpitch)
   957 { @autoreleasepool {
   957 { @autoreleasepool {
   958     METAL_TextureData *texturedata = (__bridge METAL_TextureData *)texture->driverdata;
   958     METAL_TextureData *texturedata = (__bridge METAL_TextureData *)texture->driverdata;
   959     int Uslice = texture->format == SDL_PIXELFORMAT_YV12 ? 1 : 0;
   959     const int Uslice = 0;
   960     int Vslice = texture->format == SDL_PIXELFORMAT_YV12 ? 0 : 1;
   960     const int Vslice = 1;
   961 
   961 
   962     /* Bail out if we're supposed to update an empty rectangle */
   962     /* Bail out if we're supposed to update an empty rectangle */
   963     if (rect->w <= 0 || rect->h <= 0) {
   963     if (rect->w <= 0 || rect->h <= 0) {
   964         return 0;
   964         return 0;
   965     }
   965     }