comparison src/video/SDL_renderer_gl.c @ 2812:dc39c0b02f12

Finally got the right mojo for Apple's YUV texture format.
author Sam Lantinga <slouken@libsdl.org>
date Mon, 01 Dec 2008 00:03:51 +0000
parents 7e257c3a3bf0
children 49243a6e9ff1
comparison
equal deleted inserted replaced
2811:7af2419ad5b0 2812:dc39c0b02f12
508 // if (renderdata->GL_MESA_ycbcr_texture) { 508 // if (renderdata->GL_MESA_ycbcr_texture) {
509 // internalFormat = 3; 509 // internalFormat = 3;
510 // format = GL_YCBCR_MESA; 510 // format = GL_YCBCR_MESA;
511 // type = GL_UNSIGNED_SHORT_8_8_MESA; 511 // type = GL_UNSIGNED_SHORT_8_8_MESA;
512 // } else if (renderdata->GL_APPLE_ycbcr_422) { 512 // } else if (renderdata->GL_APPLE_ycbcr_422) {
513 internalFormat = GL_RGB8; 513 internalFormat = GL_RGB;
514 format = GL_YCBCR_422_APPLE; 514 format = GL_YCBCR_422_APPLE;
515 #if SDL_BYTEORDER == SDL_LIL_ENDIAN
515 type = GL_UNSIGNED_SHORT_8_8_APPLE; 516 type = GL_UNSIGNED_SHORT_8_8_APPLE;
517 #else
518 type = GL_UNSIGNED_SHORT_8_8_REV_APPLE;
519 #endif
516 // } else { 520 // } else {
517 // SDL_SetError("Unsupported texture format"); 521 // SDL_SetError("Unsupported texture format");
518 // return -1; 522 // return -1;
519 // } 523 // }
520 break; 524 break;