I have the same problem with the current version, and a little more information:
The segfault described above is thrown for me in WglContext.cpp:93: wglMakeCurrent(NULL, NULL);
I don't know if that is of any help: Since I really have no idea about OpenGL, I tried removing said line and compile SFML2 again. The error just wanders to the next line: wglDeleteContext(myContext);
Removing the
if (wglGetCurrentContext() == myContext)
wglMakeCurrent(NULL, NULL);
wglDeleteContext(myContext);
removes the error. (What happens if I don't delete the context? May I work this way till a fix is figured out?)
OS: Win 7 64bit
Graphics Card: ATI Mobility Radeon HD 5650
Oh, and also no idea if that is of any help, while I googled a little I found this:
https://svn.lcube.de/dev123/projects/cafu/trunk/Libs/OpenGL/OpenGLWindow.cppEspecially one comment strikes me as interesting:
// WARNING: Omitting the following line worked when this library was a static library.
// When it became a shared library, the next call to glXMakeCurrent() caused a segmentation fault without this line.
// That's strange. Probably it's just a driver bug on my machine, but I thought I'd better mention it...
glXDestroyContext(DisplayPtr, RC);
edit:
Curious and curiouser: When I use static linking, everything works fine.