Removed the hacky stuff for YUV OpenGL textures, since Ryan's pixel shader code
authorSam Lantinga <slouken@libsdl.org>
Mon, 01 Dec 2008 00:05:31 +0000
changeset 281349243a6e9ff1
parent 2812 dc39c0b02f12
child 2814 e841aa93e6be
Removed the hacky stuff for YUV OpenGL textures, since Ryan's pixel shader code
will be far superior. :)
src/video/SDL_renderer_gl.c
     1.1 --- a/src/video/SDL_renderer_gl.c	Mon Dec 01 00:03:51 2008 +0000
     1.2 +++ b/src/video/SDL_renderer_gl.c	Mon Dec 01 00:05:31 2008 +0000
     1.3 @@ -96,7 +96,7 @@
     1.4        SDL_TEXTUREBLENDMODE_MOD),
     1.5       (SDL_TEXTURESCALEMODE_NONE | SDL_TEXTURESCALEMODE_FAST |
     1.6        SDL_TEXTURESCALEMODE_SLOW),
     1.7 -     16,
     1.8 +     15,
     1.9       {
    1.10        SDL_PIXELFORMAT_INDEX1LSB,
    1.11        SDL_PIXELFORMAT_INDEX1MSB,
    1.12 @@ -113,8 +113,7 @@
    1.13        SDL_PIXELFORMAT_BGR888,
    1.14        SDL_PIXELFORMAT_ARGB8888,
    1.15        SDL_PIXELFORMAT_ABGR8888,
    1.16 -      SDL_PIXELFORMAT_ARGB2101010,
    1.17 -      SDL_PIXELFORMAT_UYVY},
    1.18 +      SDL_PIXELFORMAT_ARGB2101010},
    1.19       0,
    1.20       0}
    1.21  };
    1.22 @@ -504,24 +503,6 @@
    1.23          format = GL_BGRA;
    1.24          type = GL_UNSIGNED_INT_2_10_10_10_REV;
    1.25          break;
    1.26 -    case SDL_PIXELFORMAT_UYVY:
    1.27 -//        if (renderdata->GL_MESA_ycbcr_texture) {
    1.28 -//            internalFormat = 3;
    1.29 -//            format = GL_YCBCR_MESA;
    1.30 -//            type = GL_UNSIGNED_SHORT_8_8_MESA;
    1.31 -//        } else if (renderdata->GL_APPLE_ycbcr_422) {
    1.32 -            internalFormat = GL_RGB;
    1.33 -            format = GL_YCBCR_422_APPLE;
    1.34 -#if SDL_BYTEORDER == SDL_LIL_ENDIAN
    1.35 -            type = GL_UNSIGNED_SHORT_8_8_APPLE;
    1.36 -#else
    1.37 -            type = GL_UNSIGNED_SHORT_8_8_REV_APPLE;
    1.38 -#endif
    1.39 -//        } else {
    1.40 -//            SDL_SetError("Unsupported texture format");
    1.41 -//            return -1;
    1.42 -//        }
    1.43 -        break;
    1.44      default:
    1.45          SDL_SetError("Unsupported texture format");
    1.46          return -1;