# HG changeset patch # User Sam Lantinga # Date 1228089931 0 # Node ID 49243a6e9ff16c35c4361715cc4bb9533b36bf91 # Parent dc39c0b02f12ce9133af07aaa06e576a57e5eee0 Removed the hacky stuff for YUV OpenGL textures, since Ryan's pixel shader code will be far superior. :) diff -r dc39c0b02f12 -r 49243a6e9ff1 src/video/SDL_renderer_gl.c --- a/src/video/SDL_renderer_gl.c Mon Dec 01 00:03:51 2008 +0000 +++ b/src/video/SDL_renderer_gl.c Mon Dec 01 00:05:31 2008 +0000 @@ -96,7 +96,7 @@ SDL_TEXTUREBLENDMODE_MOD), (SDL_TEXTURESCALEMODE_NONE | SDL_TEXTURESCALEMODE_FAST | SDL_TEXTURESCALEMODE_SLOW), - 16, + 15, { SDL_PIXELFORMAT_INDEX1LSB, SDL_PIXELFORMAT_INDEX1MSB, @@ -113,8 +113,7 @@ SDL_PIXELFORMAT_BGR888, SDL_PIXELFORMAT_ARGB8888, SDL_PIXELFORMAT_ABGR8888, - SDL_PIXELFORMAT_ARGB2101010, - SDL_PIXELFORMAT_UYVY}, + SDL_PIXELFORMAT_ARGB2101010}, 0, 0} }; @@ -504,24 +503,6 @@ format = GL_BGRA; type = GL_UNSIGNED_INT_2_10_10_10_REV; break; - case SDL_PIXELFORMAT_UYVY: -// if (renderdata->GL_MESA_ycbcr_texture) { -// internalFormat = 3; -// format = GL_YCBCR_MESA; -// type = GL_UNSIGNED_SHORT_8_8_MESA; -// } else if (renderdata->GL_APPLE_ycbcr_422) { - internalFormat = GL_RGB; - format = GL_YCBCR_422_APPLE; -#if SDL_BYTEORDER == SDL_LIL_ENDIAN - type = GL_UNSIGNED_SHORT_8_8_APPLE; -#else - type = GL_UNSIGNED_SHORT_8_8_REV_APPLE; -#endif -// } else { -// SDL_SetError("Unsupported texture format"); -// return -1; -// } - break; default: SDL_SetError("Unsupported texture format"); return -1;