src/video/SDL_video.c
changeset 5268 c5a04f3c3908
parent 5262 b530ef003506
child 5275 bad04e4710f6
equal deleted inserted replaced
5267:93ea62a5ba8f 5268:c5a04f3c3908
   272     }
   272     }
   273 
   273 
   274     /* Find the first format without an alpha channel */
   274     /* Find the first format without an alpha channel */
   275     *format = info.texture_formats[0];
   275     *format = info.texture_formats[0];
   276     for (i = 0; i < info.num_texture_formats; ++i) {
   276     for (i = 0; i < info.num_texture_formats; ++i) {
   277         if (!SDL_ISPIXELFORMAT_ALPHA(info.texture_formats[i])) {
   277         if (!SDL_ISPIXELFORMAT_FOURCC(info.texture_formats[i]) &&
       
   278             !SDL_ISPIXELFORMAT_ALPHA(info.texture_formats[i])) {
   278             *format = info.texture_formats[i];
   279             *format = info.texture_formats[i];
   279             break;
   280             break;
   280         }
   281         }
   281     }
   282     }
   282 
   283