Skip to content

Restore CGL-to-GLFW fallback on macOS - #3507

Open
sylvesterkaczmarek wants to merge 1 commit into
google-deepmind:mainfrom
sylvesterkaczmarek:fix/macos-cgl-glfw-fallback
Open

Restore CGL-to-GLFW fallback on macOS#3507
sylvesterkaczmarek wants to merge 1 commit into
google-deepmind:mainfrom
sylvesterkaczmarek:fix/macos-cgl-glfw-fallback

Conversation

@sylvesterkaczmarek

Copy link
Copy Markdown

Summary

On current main, Darwin always imports the CGL backend for classic rendering. If Apple's OpenGL framework does not expose CGLSetCurrentContext, that import fails even when the default backend selection could use GLFW.

This restores fallback only for default backend selection: explicit MUJOCO_GL=cgl still surfaces the CGL failure, while explicit MUJOCO_GL=glfw uses GLFW directly.

Context

This revives the substance of closed, unmerged PRs #3312/#3313 with stricter explicit-backend semantics.

Validation

  • Based on current main
  • Final diff changes one file
  • macOS runtime validation was not run in this environment

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

Successfully merging this pull request may close these issues.

1 participant