Minor tweaks to help out at a driver level.
[mesa.git] / src / mesa / main / texformat_tmp.h
index b0af8b879b1fe1e087787ae76fb2885342e5aa17..14eb0463abf4d9d6e92c16fe49f30ec93e8e809f 100644 (file)
@@ -337,9 +337,9 @@ static void FETCH(ycbcr_rev)( const struct gl_texture_image *texImage,
    const GLushort *src0 = USHORT_SRC( texImage, (i & ~1), j, k ); /* even */
    const GLushort *src1 = src0 + 1;                               /* odd */
    const GLubyte y0 = *src0 & 0xff;         /* luminance */
-   const GLubyte cr = (*src0 >> 8) & 0xff;  /* chroma U */
+   const GLubyte cr = (*src0 >> 8) & 0xff;  /* chroma V */
    const GLubyte y1 = *src1 & 0xff;         /* luminance */
-   const GLubyte cb = (*src1 >> 8) & 0xff;  /* chroma V */
+   const GLubyte cb = (*src1 >> 8) & 0xff;  /* chroma U */
    GLchan *rgba = (GLchan *) texel;
    GLint r, g, b;
    if (i & 1) {