Eero Pajarre wrote:
>
> I had had pretty nasty problems with my app and the CVS-MESA,
> basically CVA stuff was "OK" and the non CVA stuff was "FUBAR"
>
> Anyways I was running VTUNE agains my app and noticed that
> texture coordinate generation was taking too much time.
>
> So...
>
> I was enabling environment mapping with:
> glTexGeni(GL_S,GL_TEXTURE_GEN_MODE,GL_SPHERE_MAP);
> glTexGeni(GL_T,GL_TEXTURE_GEN_MODE,GL_SPHERE_MAP);
> glEnable(GL_TEXTURE_GEN_S);
> glEnable(GL_TEXTURE_GEN_T);
>
> and disabling it with:
> glDisable(GL_TEXTURE_GEN_S);
> glDisable(GL_TEXTURE_GEN_T);
>
> (please tell me if this is not ok)
>
> Disabling texture coord generation was not working!!
>
> The tex_gen state is stored in several
> fields in the context state, so I am not
> 100 % sure if this is correct but...
>
> In texture.c around line 190 I moved
> texUnit->GenFlags = 0 from inside of the the
> TexGenEnabled condition to the outside of the condition.
> (Otherwise when the TexGenEnabled became zero
> GenFlags were "stuck" to their previous value)
[...]
> I request that this fix or something with similar effect is installed
> in the CVS tree. This single problem was responsible of majority of my
> problems with my application.(large portion of the rest is propably
> related to the CVA color merge problem which has been reported here)
Your fix is correct. I've commited it. Thanks!
-Brian
----------------------------------------------------------------------
Brian Paul Avid Technology / Softimage [EMAIL PROTECTED]
_______________________________________________
Mesa-dev maillist - [EMAIL PROTECTED]
http://lists.mesa3d.org/mailman/listinfo/mesa-dev