-
Notifications
You must be signed in to change notification settings - Fork 2.4k
Description
This bug report was migrated from our old Bugzilla tracker.
Reported in version: HG 2.1
Reported for operating system, platform: Mac OS X 10.8, x86_64
Comments on the original bug report:
On 2015-07-12 23:01:01 +0000, Darren Kulp wrote:
The dummy video driver is not available on Mac OS X if SDL_VIDEO_OPENGL is set at library compilation time.
In src/video/SDL_video.c, there is a compile-time check in SDL_CreateWindow() for (SDL_VIDEO_OPENGL && MACOSX). When it succeeds, SDL_WINDOW_OPENGL is always requested. Since the dummy video driver does not supply an OpenGL implementation, the error "No OpenGL support in video driver" is supplied to the user, and SDL_CreateWindow() is exited early. See the code here :
https://hg.libsdl.org/SDL/file/d1e20d38e5f5/src/video/SDL_video.c#l1274
The dummy driver is useful for checking correctness with headless automated tests. I believe the dummy driver should work on Mac OS X.
On 2016-10-08 01:09:27 +0000, Sam Lantinga wrote:
Fixed, thanks!
https://hg.libsdl.org/SDL/rev/c64e191b5518
On 2016-10-08 02:15:20 +0000, Darren Kulp wrote:
(In reply to Sam Lantinga from comment # 1)
Now I am slapping my forehead at the simplicity of an acceptable fix. I should have made such a change myself instead of half-implementing a dummy GL driver ...
Thanks.
On 2016-10-08 02:29:28 +0000, Sam Lantinga wrote:
You're welcome. :)