From efaa8be77f3c9f77f9abf97875c0fb3006e82aa0 Mon Sep 17 00:00:00 2001 From: Brian Paul Date: Wed, 2 Oct 2002 17:26:18 +0000 Subject: also test glTexSubImage2D() with YCbCr data --- progs/tests/yuv.c | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/progs/tests/yuv.c b/progs/tests/yuv.c index 0eb84b3c4c0..ae5c04d3272 100644 --- a/progs/tests/yuv.c +++ b/progs/tests/yuv.c @@ -4,7 +4,7 @@ * Brian Paul 13 September 2002 */ - +#include #include #include #include @@ -191,8 +191,14 @@ static void Init( int argc, char *argv[] ) ConvertRGBtoYUV(ImgWidth, ImgHeight, Image, ImageYUV); glTexImage2D(GL_TEXTURE_RECTANGLE_NV, 0, GL_YCBCR_MESA, ImgWidth, ImgHeight, 0, - GL_YCBCR_MESA, GL_UNSIGNED_SHORT_8_8_APPLE, ImageYUV); + GL_YCBCR_MESA, GL_UNSIGNED_SHORT_8_8_MESA, ImageYUV); + + assert(glGetError() == GL_NO_ERROR); + glTexSubImage2D(GL_TEXTURE_RECTANGLE_NV, 0, + 0, 0, ImgWidth, ImgHeight, + GL_YCBCR_MESA, GL_UNSIGNED_SHORT_8_8_MESA, ImageYUV); + assert(glGetError() == GL_NO_ERROR); #endif glTexEnvi(GL_TEXTURE_ENV, GL_TEXTURE_ENV_MODE, GL_MODULATE); -- cgit v1.2.3