src/video/SDL_video.c
changeset 5268 c5a04f3c3908
parent 5262 b530ef003506
child 5275 bad04e4710f6
--- a/src/video/SDL_video.c	Sat Feb 12 08:17:37 2011 -0800
+++ b/src/video/SDL_video.c	Sat Feb 12 08:17:58 2011 -0800
@@ -274,7 +274,8 @@
     /* Find the first format without an alpha channel */
     *format = info.texture_formats[0];
     for (i = 0; i < info.num_texture_formats; ++i) {
-        if (!SDL_ISPIXELFORMAT_ALPHA(info.texture_formats[i])) {
+        if (!SDL_ISPIXELFORMAT_FOURCC(info.texture_formats[i]) &&
+            !SDL_ISPIXELFORMAT_ALPHA(info.texture_formats[i])) {
             *format = info.texture_formats[i];
             break;
         }