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