Reputation: 2730
As the title says, my application hangs while running SDL_SetVideoMode, but only when i specify that I want to use OpenGL. Otherwise it initiates without any problem.
Edit: When waiting ~50 seconds, it manages to initiate.
Edit 2: Driver update solved it.
Code looks something like:
SDL_Init(SDL_INIT_VIDEO);
SDL_SetVideoMode(800, 600, 24, SDL_OPENGL);
Any ideas why this is happening?
Using Visual Studio 2010 and SDL/OpenGL libraries are linked as the should be (as far as i know).
Upvotes: 1
Views: 632
Reputation: 973
That looks OK to me, are you sure it is not a drivers problem? Do you know for sure it crashes inside that function? And if so, did you use a debugger to see why/where it crashes?
Upvotes: 0