Finally got the right mojo for Apple's YUV texture format.
--HG-- extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%403273
This commit is contained in:
parent
0f0dfe230b
commit
02f6a8797c
1 changed files with 5 additions and 1 deletions
|
@ -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;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue