ever deleted a pfClipTexture in a libpf program?

New Message Reply Date view Thread view Subject view Author view

Daniel Williams (dwilliams++at++sarnoff.com)
Wed, 11 Feb 1998 17:59:20 -0500


I'm trying to manage multiple cliptextures in a dynamic
fashion (loading and unloading them on the fly) and
I've run into a real wall trying to delete pfClipTexture
objects in a libpf program.

This is on a single channel of a single pipe of a 3 pipe
Onyx2 IR using Performer2.2. I get the same results using
either PFMP_APP_CULLDRAW or PFMP_APPCULLDRAW.

I've instrumented my code so that I print out reference counts
all over the place and I've found that the method
pfPipe::addMPClipTexture will cause the reference count of the
sole pfClipTexture I'm testing with to be incremented by 3,
after a few pfSync()/pfFrame()'s. However, the method
pfPipe::removeMPClipTexture results in no decrement at all.
So I wind up with too high a reference count.
Deleting the pfMPClipTexture, deleting the pfuClipCenterNode
and setting the PFSTATE_TEXTURE attribute on the geostate
to be NULL all do the right thing in terms of decrementing
the pfClipTexture's reference count.

What else is pointing to my pfClipTexture and how can I make it stop?

Thanks,
Dan

P.S. - when I tried unref'ing the pfClipTexture until it's
reference count went to zero and then deleting it, I got memory
errors and crashes.

--
Daniel Williams, Systems & Scientific Software
Independent Consultant to: Sarnoff Corporation
Voice: (609) 734-2153 Email: dwilliams++at++sarnoff.com
=======================================================================
List Archives, FAQ, FTP:  http://www.sgi.com/Technology/Performer/
            Submissions:  info-performer++at++sgi.com
        Admin. requests:  info-performer-request++at++sgi.com

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:56:46 PDT

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