diff src/video/x11/SDL_x11render.c @ 2811:7af2419ad5b0

Fixed the list of supported YUV formats
author Sam Lantinga <slouken@libsdl.org>
date Sun, 30 Nov 2008 23:42:33 +0000
parents 27cb878a278e
children e841aa93e6be
line wrap: on
line diff
--- a/src/video/x11/SDL_x11render.c	Sun Nov 30 21:58:23 2008 +0000
+++ b/src/video/x11/SDL_x11render.c	Sun Nov 30 23:42:33 2008 +0000
@@ -192,6 +192,8 @@
         if (info->num_texture_formats == 0) {
             return;
         }
+        info->texture_formats[info->num_texture_formats++] = SDL_PIXELFORMAT_YV12;
+        info->texture_formats[info->num_texture_formats++] = SDL_PIXELFORMAT_IYUV;
         info->texture_formats[info->num_texture_formats++] = SDL_PIXELFORMAT_YUY2;
         info->texture_formats[info->num_texture_formats++] = SDL_PIXELFORMAT_UYVY;
         info->texture_formats[info->num_texture_formats++] = SDL_PIXELFORMAT_YVYU;