Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Selecting the dummy video driver on Mac OS X results in an error #1922

Closed
SDLBugzilla opened this issue Feb 11, 2021 · 0 comments
Closed

Selecting the dummy video driver on Mac OS X results in an error #1922

SDLBugzilla opened this issue Feb 11, 2021 · 0 comments

Comments

@SDLBugzilla
Copy link
Collaborator

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)

https://hg.libsdl.org/SDL/rev/c64e191b5518

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. :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant