Mercurial > sdl-ios-xcode
diff src/video/SDL_renderer_gl.c @ 2813:49243a6e9ff1
Removed the hacky stuff for YUV OpenGL textures, since Ryan's pixel shader code
will be far superior. :)
author | Sam Lantinga <slouken@libsdl.org> |
---|---|
date | Mon, 01 Dec 2008 00:05:31 +0000 |
parents | dc39c0b02f12 |
children | 0379769e8caa |
line wrap: on
line diff
--- 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;