From: <to...@te...> - 2007-06-24 06:11:00
|
to...@te... wrote: > to...@te... wrote: >> All examples work, except for two. The exext exsample segfaults at what >> is line 249 in the C version: 'glGenProgramsARB(1, &pid);'. I have no >> idea how this happens, so I'm hoping one of you knows what can cause >> this function to crash. >> > > I've made some progress on this. If I print the address of > glGenProgramsARB, and then print what > wglGetProcAddress("glGenProgramsARB") returns, they are NOT equal. > Shouldn't they be? Any idea how this can end up being set to the wrong > address? > > If I just call the functions I get from wglGetProcAddress, exext runs a > few lines further, and stop with the message "Error compiling the vertex > program: character -1". So at least I've made some progress. :) > I fixed it now. It was just a stupid mistake that caused dallegroGL not to link with allegroGL's definitions of the function pointers. That's why they were wrong. Now it crashes somewhere else, but that can wait for tomorrow. :) |