Commit 02f6a879 authored by Sam Lantinga's avatar Sam Lantinga

Finally got the right mojo for Apple's YUV texture format.

--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%403273
parent 0f0dfe23
...@@ -510,9 +510,13 @@ GL_CreateTexture(SDL_Renderer * renderer, SDL_Texture * texture) ...@@ -510,9 +510,13 @@ GL_CreateTexture(SDL_Renderer * renderer, SDL_Texture * texture)
// format = GL_YCBCR_MESA; // format = GL_YCBCR_MESA;
// type = GL_UNSIGNED_SHORT_8_8_MESA; // type = GL_UNSIGNED_SHORT_8_8_MESA;
// } else if (renderdata->GL_APPLE_ycbcr_422) { // } else if (renderdata->GL_APPLE_ycbcr_422) {
internalFormat = GL_RGB8; internalFormat = GL_RGB;
format = GL_YCBCR_422_APPLE; format = GL_YCBCR_422_APPLE;
#if SDL_BYTEORDER == SDL_LIL_ENDIAN
type = GL_UNSIGNED_SHORT_8_8_APPLE; type = GL_UNSIGNED_SHORT_8_8_APPLE;
#else
type = GL_UNSIGNED_SHORT_8_8_REV_APPLE;
#endif
// } else { // } else {
// SDL_SetError("Unsupported texture format"); // SDL_SetError("Unsupported texture format");
// return -1; // return -1;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment