The SDL forums have moved to discourse.libsdl.org.
This is just a read-only archive of the previous forums, to keep old links working.


SDL Forum Index
SDL
Simple Directmedia Layer Forums
Inability to use SDL_VIDEODRIVER=dummy on Mac OS X
kulp


Joined: 28 Jun 2015
Posts: 2
Hello, new community member here. Assuming I know nothing will yield a good approximation of reality.

On Mac OS X, SDL2 is not usable with the dummy video driver, because the dummy video driver does not supply GL callbacks, and SDL initialisation will will fail without them. I use the dummy driver to run automated tests for http://tenyr.info, and I would like them to work on Mac OS X. Shall I file a bug ?

I would have liked to submit a patch myself but I know very little about GL and I do not want to assume that the correct solution is to implement a dummy GL driver, anyway.

hg blame src/video/SDL_video.c shows the code that produces the error I see ("No OpenGL support in video driver") :
Code:

8582:     /* Some platforms have OpenGL enabled by default */
8833: #if (SDL_VIDEO_OPENGL && __MACOSX__) || __IPHONEOS__ || __ANDROID__ || __NACL__
8582:     flags |= SDL_WINDOW_OPENGL;
8582: #endif
8582:     if (flags & SDL_WINDOW_OPENGL) {
8582:         if (!_this->GL_CreateContext) {
8582:             SDL_SetError("No OpenGL support in video driver");
8582:             return NULL;
8582:         }
8582:         if (SDL_GL_LoadLibrary(NULL) < 0) {
8582:             return NULL;
8582:         }
8582:     }


Thanks in advance,

Darren Kulp
Re: Inability to use SDL_VIDEODRIVER=dummy on Mac OS X
kulp


Joined: 28 Jun 2015
Posts: 2
kulp wrote:
Shall I file a bug ?


I filed https://bugzilla.libsdl.org/show_bug.cgi?id=3061. Any discussion can hereafter take place there, not here.