updated TODO and remove the reference to the Linux bug for future reference: this bug was only appearing on Linux with nvidia drivers. The cause was eventually found to be an unnecessary call to glenablevertexattribarray (called during VBO binding) during initialization, with two different shader programs. the program then segfault when the first shader program is bound, during gldrawarrays. OpenGL tried to access some unallocated memory buffer for some reason (maybe because glenablevertexattribarray was called for another shader program just before, at initialization time?). Anyway, removing this unnecessary call at initialization time seems to fix this bug.
updated TODO and remove the reference to the Linux bug
for future reference: this bug was only appearing on Linux with nvidia drivers. The cause was eventually found to be an unnecessary call to glenablevertexattribarray (called during VBO binding) during initialization, with two different shader programs. the program then segfault when the first shader program is bound, during gldrawarrays. OpenGL tried to access some unallocated memory buffer for some reason (maybe because glenablevertexattribarray was called for another shader program just before, at initialization time?). Anyway, removing this unnecessary call at initialization time seems to fix this bug.

rossant/galry,rossant/galry,rossant/galry