Skip to content
This repository has been archived by the owner on Feb 11, 2021. It is now read-only.

Commit

Permalink
Removed the hacky stuff for YUV OpenGL textures, since Ryan's pixel s…
Browse files Browse the repository at this point in the history
…hader code

will be far superior. :)
  • Loading branch information
slouken committed Dec 1, 2008
1 parent 83ff6b3 commit 240a2e2
Showing 1 changed file with 2 additions and 21 deletions.
23 changes: 2 additions & 21 deletions src/video/SDL_renderer_gl.c
Expand Up @@ -96,7 +96,7 @@ SDL_RenderDriver GL_RenderDriver = {
SDL_TEXTUREBLENDMODE_MOD),
(SDL_TEXTURESCALEMODE_NONE | SDL_TEXTURESCALEMODE_FAST |
SDL_TEXTURESCALEMODE_SLOW),
16,
15,
{
SDL_PIXELFORMAT_INDEX1LSB,
SDL_PIXELFORMAT_INDEX1MSB,
Expand All @@ -113,8 +113,7 @@ SDL_RenderDriver GL_RenderDriver = {
SDL_PIXELFORMAT_BGR888,
SDL_PIXELFORMAT_ARGB8888,
SDL_PIXELFORMAT_ABGR8888,
SDL_PIXELFORMAT_ARGB2101010,
SDL_PIXELFORMAT_UYVY},
SDL_PIXELFORMAT_ARGB2101010},
0,
0}
};
Expand Down Expand Up @@ -504,24 +503,6 @@ GL_CreateTexture(SDL_Renderer * renderer, SDL_Texture * texture)
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;
Expand Down

0 comments on commit 240a2e2

Please sign in to comment.