--- a/src/render/SDL_render.c Tue Feb 15 14:17:42 2011 -0800
+++ b/src/render/SDL_render.c Tue Feb 15 15:50:21 2011 -0800
@@ -244,7 +244,8 @@
/* We just want to match the first format that has the same channels */
for (i = 0; i < renderer->info.num_texture_formats; ++i) {
- if (SDL_ISPIXELFORMAT_ALPHA(renderer->info.texture_formats[i]) == hasAlpha) {
+ if (!SDL_ISPIXELFORMAT_FOURCC(renderer->info.texture_formats[i]) &&
+ SDL_ISPIXELFORMAT_ALPHA(renderer->info.texture_formats[i]) == hasAlpha) {
return renderer->info.texture_formats[i];
}
}