Mac OS X fullscreen crash


I’m using a hackintosh under VirtualBox. This is probably the source of the problem, but I was wondering if anyone else had the same problem or knows what’s going on. I’m unable to test on a real Mac at this time.

When I call SDL_SetVideoMode() with SDL_FULLSCREEN, I get a segmentation fault. If I call it with (SDL_FULLSCREEN | SDL_OPENGL), then then is no segmentation fault, but SDL_GetError() reports “Failed creating OpenGL pixel format”.

OpenGL configured with:

SDL_GL_SetAttribute(SDL_GL_RED_SIZE, 5);
SDL_GL_SetAttribute(SDL_GL_GREEN_SIZE, 5);
SDL_GL_SetAttribute(SDL_GL_BLUE_SIZE, 5);
SDL_GL_SetAttribute(SDL_GL_DEPTH_SIZE, 16);

In window mode, everything works fine.

The same code works fine on Windows and Linux (Ubuntu), in both windowed and full screen. Both of these are real installs with real hardware (not VirtualBox).

I’m using Using SDL 1.2.14. The hackintosh is using a software emulated renderer provided by VirtualBox.

Any ideas?