diff options
author | Brian Paul <[email protected]> | 2002-10-02 17:26:18 +0000 |
---|---|---|
committer | Brian Paul <[email protected]> | 2002-10-02 17:26:18 +0000 |
commit | efaa8be77f3c9f77f9abf97875c0fb3006e82aa0 (patch) | |
tree | afb037a4a23c9b6068c080af536ab4969d5718eb | |
parent | ed7b3b61f5ff66c9b33e3a4c7127eea9f29d61f0 (diff) |
also test glTexSubImage2D() with YCbCr data
-rw-r--r-- | progs/tests/yuv.c | 10 |
1 files 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 <assert.h> #include <math.h> #include <stdio.h> #include <stdlib.h> @@ -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); |