src/video/SDL_renderer_gl.c
changeset 3494 61d95a87c327
parent 3479 6f887204fa7a
child 3520 83518f8fcd61
--- a/src/video/SDL_renderer_gl.c	Wed Nov 25 07:42:23 2009 +0000
+++ b/src/video/SDL_renderer_gl.c	Thu Nov 26 05:55:57 2009 +0000
@@ -707,7 +707,7 @@
             *type = GL_UNSIGNED_SHORT_8_8_REV_APPLE;
 #endif
         } else if (renderdata->GL_MESA_ycbcr_texture_supported) {
-            *internalFormat = GL_RGB;
+            *internalFormat = GL_YCBCR_MESA;
             *format = GL_YCBCR_MESA;
 #if SDL_BYTEORDER == SDL_LIL_ENDIAN
             *type = GL_UNSIGNED_SHORT_8_8_MESA;
@@ -732,7 +732,7 @@
             *type = GL_UNSIGNED_SHORT_8_8_APPLE;
 #endif
         } else if (renderdata->GL_MESA_ycbcr_texture_supported) {
-            *internalFormat = GL_RGB;
+            *internalFormat = GL_YCBCR_MESA;
             *format = GL_YCBCR_MESA;
 #if SDL_BYTEORDER == SDL_LIL_ENDIAN
             *type = GL_UNSIGNED_SHORT_8_8_REV_MESA;