I’m new to SDL, OpenGL and MingGW, and I’m trying to write some
portable OpenGL code. My development machine is Gentoo Linux, and I
setup MinGW as a cross-compiler.
Earlier today my code had a bug - the Windows version crashed (during
the return from the function that uses OpenGL) with a segmentation
fault when I try using “simple” OpenGL functions. The Linux version of
my code worked perfectly.
I spent around 10 hours trying different packages, different version
of SDL, installing MinGW on Windows to see if that was different,
trying test/example code, debugging, etc. Nothing I did helped, other
peoples code had the same bug, hair loss was at record levels…
In the documentation for SDL_GL_GetProcAddress(), can someone add some
notes about using “APIENTRY”?
It’d help - I promise…