I had this problem on gentoo. It turned out that my libsdl wasn't built with opengl support.