summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--progs/tests/yuv.c10
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);