My code compiles and runs perfectly on Windows however on Mac I'm getting the error "EXC_BAD_ACCESS" the first time I try to load a texture. The texture dimensions are powers of two and here is the stack trace:
#0 0x7fff83b223e2 in glGetIntegerv
#1 0x100092283 in sf::Image::GetMaximumSize at Image.cpp:539
#2 0x100094001 in sf::Image::CreateTexture at Image.cpp:600
#3 0x1000950f3 in sf::Image::LoadFromFile at Image.cpp:103
#4 0x10000c912 in cman::GetImage at cman.cpp:15
#5 0x10000b1cf in intro_load at main.cpp:81
#6 0x10000f708 in sf::priv::ThreadFunctorWithArg<void (*)(LoadFuncData*), LoadFuncData*>::Run at Thread.inl:48
#7 0x10024fae4 in sf::Thread::Run at Thread.cpp:83
#8 0x10025007c in sf::priv::ThreadImpl::EntryPoint at ThreadImpl.cpp:74
#9 0x7fff88cf54f6 in _pthread_start
Can I not load images from another thread on Mac or something?