src/render/SDL_yuv_sw.c
changeset 6490 d2d8576aa3a0
parent 6138 4c64952a58fb
child 6885 700f1b25f77f
equal deleted inserted replaced
6489:31449ea8f934 6490:d2d8576aa3a0
  1042     case SDL_PIXELFORMAT_YUY2:
  1042     case SDL_PIXELFORMAT_YUY2:
  1043     case SDL_PIXELFORMAT_UYVY:
  1043     case SDL_PIXELFORMAT_UYVY:
  1044     case SDL_PIXELFORMAT_YVYU:
  1044     case SDL_PIXELFORMAT_YVYU:
  1045         break;
  1045         break;
  1046     default:
  1046     default:
       
  1047         SDL_SW_DestroyYUVTexture(swdata);
  1047         SDL_SetError("Unsupported YUV format");
  1048         SDL_SetError("Unsupported YUV format");
  1048         return NULL;
  1049         return NULL;
  1049     }
  1050     }
  1050 
  1051 
  1051     swdata->format = format;
  1052     swdata->format = format;