cause a raster fallback if a yuv texture is used on texture unit > 0 as yuv conversion appears only to work on first unit.

This commit is contained in:
Roland Scheidegger 2006-09-10 13:48:51 +00:00
parent 02df36f394
commit 7998962444

View file

@ -1197,6 +1197,9 @@ static GLboolean update_tex_common( GLcontext *ctx, int unit )
fprintf(stderr, "%s: border\n", __FUNCTION__);
return GL_FALSE;
}
/* yuv conversion only works in first unit */
if (unit != 0 && (t->pp_txfilter & RADEON_YUV_TO_RGB))
return GL_FALSE;
/* Update state if this is a different texture object to last
* time.