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

Commit

Permalink
Finally got the right mojo for Apple's YUV texture format.
Browse files Browse the repository at this point in the history
  • Loading branch information
slouken committed Dec 1, 2008
1 parent ede1ef0 commit 83ff6b3
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/video/SDL_renderer_gl.c
Expand Up @@ -510,9 +510,13 @@ GL_CreateTexture(SDL_Renderer * renderer, SDL_Texture * texture)
// format = GL_YCBCR_MESA;
// type = GL_UNSIGNED_SHORT_8_8_MESA;
// } else if (renderdata->GL_APPLE_ycbcr_422) {
internalFormat = GL_RGB8;
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;
Expand Down

0 comments on commit 83ff6b3

Please sign in to comment.