pfApplyTex

New Message Reply Date view Thread view Subject view Author view

Alon Rosenfeld 18 Hatzedef street Jaffa (alon++at++bvr.co.il)
Mon, 20 Jun 1994 12:23:18 +0000


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?

Thanks

Alon


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:20 PDT

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