From: Mathieu MARACHE (Mathieu.MARACHE++at++cstb.fr)
Date: 02/12/2004 02:48:17
Hi all,
I came across a bug in the delivered asdfly sample on IRIX platforms.
I'm working on ASD's and virtual clip textures. My textures did work
perfectly with clipfly but not with asdfly while in multipipe
environment. Looking trough the (dense) code I found that in the later
the textures are only loaded on the first pipe... Here is the patch to
make it work...
HTH
-- Mathieu Marache, Ph. D. (CSTB-TIDS-SAIL-EVE) tel: +33 (0)4 93956 700 fax: +33 (0)4 93956 733 mathieu.marache++at++cstb.fr http://sail.cstb.fr Public PGP key : 0xA00E9C4F
--- /usr/share/Performer/src/sample/C/asdfly/terrain.c 2004-02-02 10:58:44.509047200 +0100 +++ /tmp/terrain.c 2004-02-12 11:34:55.863542400 +0100 ++at++++at++ -144,7 +144,16 ++at++++at++ buildGState(pfGeoState *gs) pfMPClipTextureClipTexture(mpcliptex, clip); pfAddMPClipTexture(pfGetPipe(0), mpcliptex); pfPipeIncrementalStateChanNum(pfGetPipe(0),1); - } + if (pfGetMultipipe()>1) { // MM: try to handle multipe here + // -> differs from asdfly's terrain.c + int pipe; + for(pipe = pfGetMultipipe() - 1; pipe > 0; pipe--) + { + pfGetPipe(pipe)->setIncrementalStateChanNum(0); + pfGetPipe(pipe)->addMPClipTexture(mpcliptex); + } + } + } else { pfLoadTexFile( tex, texfile );
This archive was generated by hypermail 2b29 : Thu Feb 12 2004 - 02:49:18 PST