-------- Forwarded Message -------- From: Tristan <[EMAIL PROTECTED]> To: Ben Hutchings <[EMAIL PROTECTED]> Subject: Re: Bug#324025: aqsis: FTBFS on 64 bit arches: error: cast from 'void*' to 'int' loses precision Date: Mon, 06 Mar 2006 03:39:13 -0800
Hi, Someone sent me a link to the post below, I am the author of the code in question. re: Cloning of the IDs, I think this is spec compliant. The spec (the doc you pointed two) specifies that the init function is called once per renderer instance (or renderer thread), not once per shader instance. In order to use per-shader initialization DSO authors will normally add an additional DSO which lets them init a new invocation of the DSO. There are a couple of example online of using this technique. So basically you build a per-shader instance init on top of SL which might end up looking like... int callid = init_myshadeop("somestuff","otherstuff"); ... Cs = myshadeop(callid,P,,N,"whatever data"); ... shutdown_myshadeop(callid) It might not be pretty, but then there is alot about RiSpec that isn't pretty. I'll see if there is anything we can do about the pointer conversion issue. I noticed that people seemed to be suggesting keeping a patch local to debian, is this the normal way of doing things? Is there a policy of pushing bugs and/or patches upstream to the originating project? Cheers Tristan Colgate [Quoted text omitted - Ben Hutchings.]
signature.asc
Description: This is a digitally signed message part