Re: pfApplyTex

New Message Reply Date view Thread view Subject view Author view

John Rohlf (jrohlf++at++tubes)
Tue, 21 Jun 94 11:46:54 PDT


>
> Hi,
>
> My problem regards the calling of pfApplyTex().
>
> After calling pfDraw() in my drawChannel cb, I draw some geometry
> involving texture. My code looks something like this:
>
> ....
> pfEnable(PFEN_TEXTURE);
> pfApplyTEnv(texenv);
> pfApplyTex(txt);
>
> .... draw geometry ....
>
> Sadly no texture appears on the geometry, gldebug confirms that neither tevbind
> nor texbind are called. However when calling pfPushState() just before the
> settings (and pfPopState() after drawing), makes all the difference. Now
> Performer draws the geometry using the desired texture (GLdebug.history
> recorded the calls to tevbind and texbind). One could argue and say that there
> was probably some overrides on the pfstate stack but calling pfGetOverride()
> yields no overrides.
>
> Well what is it that makes pfPushState() enable the texture calls?
>

        Darned if I know. Perhaps pfGetOverride is faulty. Are you
overriding any texture state in other places? As an experiment,
call pfFlushState instead of pfPush/PopState.


New Message Reply Date view Thread view Subject view Author view

This archive was generated by hypermail 2.0b2 on Mon Aug 10 1998 - 17:50:21 PDT

This message has been cleansed for anti-spam protection. Replace '++at++' in any mail addresses with the '@' symbol.