Re: deleting pfLight's

New Message Reply Date view Thread view Subject view Author view

John Rohlf (jrohlf++at++tubes)
Sun, 30 Oct 94 12:12:44 PST


>
> Does pfDelete work properly on pfLights? It doesn't seem to do all the necessary
> deletion. Calling pfLightOff( light ) before pfDelete( light ) seems to have an
> infuence, but I still get errors.
>

        pfLights are "reference-counted" by the GL when they are bound
to a target like LIGHT1. Performer does not keep track of these references
so if you delete a currently-bound light you will have problems.
This is why calling pfLightOff( light ) before pfDelete( light ) helps.

        The remaining problems might be due to pipelined multiprocessing
where the pfLight is in use by later pipeline stages for a couple of
frames after you delete it. The workaround is to pfLightOff() then
wait a couple frames before deleting. However, I will investigate the
possibility of pfDelete() automatically delaying the deletion for you.
Note that pfDelete already does this for pfNodes.


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

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