-
Notifications
You must be signed in to change notification settings - Fork 5.1k
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
Compatibility of glfw with the Apple software render in github CI #2570
Comments
That sdl2 and opengl on osx works happily headless can been seen in the CI in FlorianRhiem/pyGLFW#80 (comment) |
Copying the output of the MacOS run of glfwinfo here for more information:
|
#2080 is related |
For a successful run (with either SDL2 or GLUT) within github CI's macos 14 runner, the GL context reports its vendor/renderer, version, shader version as:
|
Glfw itself has an offscreen rendering example : https://github.com/glfw/glfw/blob/master/examples/offscreen.c . It probably should be run post-build to check that it can run! |
In my fork's ci branch I have added the two lines from #2080, as well as running both glfwinfo and the offscreen example. Here is the result from github action:
|
In stock, running the offscreen example post-build gives:
|
Linked from #589 is |
Github CI has a mac os runner which is headless AFAIK, but it has a software renderer. However, glfw can't get to it - this can be illustrated by this pull (do not merge) which runs glfwinfo after build:
#2569
Both OSX OpenGL (the GLUT part) and SDL2 can get at the apple software renderer within github CI, so this is a glfw specific problem. It would be useful to nake this work, to allow glfw to be used within github's own CI workflow for testing.
I came to be here after going down the rabbit hole of trying to look at a mac os specific problem in skia-python (which has CI testing for all three platforms, and been using glut for testing on mac os x for the above reasons, instead of glfw as in the case of linux with Xvfb):
kyamagu/skia-python#214
and downstream FlorianRhiem/pyGLFW#80
The text was updated successfully, but these errors were encountered: