[GEM-dev] shaders on 64bit systems

IOhannes m zmoelnig zmoelnig at iem.at
Thu Dec 2 14:33:38 CET 2010


On 2010-12-02 14:24, cyrille henry wrote:
> hello,
> 
> if things need to be broken, then i suggest not to change glsl_vertex,
> glsl_ etc, but to create other object.
> so the current patch will work with 32 bit system.
> and patch using this new objects will work with both 32 and 64 bits
> systems.

ah no, this doesn't sound like a good idea.
i'd rather have to force users to switch now than to maintain 2 separate
sets of objects for the rest of Gem's live.
but read on!

i investigated a bit further and have created a fix that should be
totally transparent from the user's pov, by not using wild
reinterpretation-casts but instead using a lookup table where the real
GLuint IDs are mapped to small floats.

this should work (check svn)

fgmasdr
IOhannes

-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 3636 bytes
Desc: S/MIME Cryptographic Signature
URL: <http://lists.puredata.info/pipermail/gem-dev/attachments/20101202/b7310131/attachment.bin>


More information about the GEM-dev mailing list