From: Brian Paul Date: Mon, 17 Nov 2003 15:15:18 +0000 (+0000) Subject: fix texgen bug 597589 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=a4e65d69dc745a78fb3dbcbb0ee194e1b6877c5d;p=mesa.git fix texgen bug 597589 --- diff --git a/docs/VERSIONS b/docs/VERSIONS index 44c72abce3f..5de3d2bdbbc 100644 --- a/docs/VERSIONS +++ b/docs/VERSIONS @@ -1174,6 +1174,7 @@ Mesa Version History - fixed glTexSubImage3D z-offset bug (Cedric Gautier) - fixed RGBA blend enable bug (Ville Syrjala) - glAccum is supposed to be a no-op in selection/feedback mode + - fixed texgen bug #597589 (John Popplewell) Changes: - dropped API trace feature (src/Trace/) - documentation overhaul. merged with website content. more html. diff --git a/src/mesa/tnl/t_vb_texgen.c b/src/mesa/tnl/t_vb_texgen.c index a9ae9cc999a..81c33816653 100644 --- a/src/mesa/tnl/t_vb_texgen.c +++ b/src/mesa/tnl/t_vb_texgen.c @@ -550,9 +550,9 @@ static GLboolean run_validate_texgen_stage( GLcontext *ctx, if (texUnit->TexGenEnabled) { GLuint sz; - if (texUnit->TexGenEnabled & R_BIT) + if (texUnit->TexGenEnabled & Q_BIT) sz = 4; - else if (texUnit->TexGenEnabled & Q_BIT) + else if (texUnit->TexGenEnabled & R_BIT) sz = 3; else if (texUnit->TexGenEnabled & T_BIT) sz = 2;