Is there a freeImage() ref count?

New Message Reply Date view Thread view Subject view Author view

WDea++at++swri.edu
Mon, 16 Dec 96 0:35:02 CST


My Performer application allocates and frees textures several times.
Some of these these textures share images. On occasion, a texture
image is freed with pfTexture::freeImage() that is being used by
another texture and an undesirable "white image" appears.

Is there any way to check and see if an image is being used by another
texture before calling pfTexture::freeImage()? An image reference count
maybe? Or is there another way to avoid this scenario?

Thanks in advance,

Frank

--
William Frank Dea
     _________/|__________
    /--------/-/---------/
   /    /   / /   /     /          "If you want to get results ...
  /-   /---/-/---/    -/            try a prayer!"
 /    /   / /   /     /
/--------/-/---------/
    wdea++at++swri.edu

Research Engineer Southwest Research Institute

======================================================================= 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:54:09 PDT

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