Skip to content

Support GZ_GUI_RENDER_ENGINE_GUI_API_BACKEND env fallback#772

Open
j-rivero wants to merge 1 commit into
mainfrom
jrvero/vulkan_fd_2
Open

Support GZ_GUI_RENDER_ENGINE_GUI_API_BACKEND env fallback#772
j-rivero wants to merge 1 commit into
mainfrom
jrvero/vulkan_fd_2

Conversation

@j-rivero

@j-rivero j-rivero commented Jun 5, 2026

Copy link
Copy Markdown
Contributor

🎉 New feature

Summary

When the backend is not selected via the explicit C++ option (_renderEngineGuiApiBackend == nullptr), fall back to the GZ_GUI_RENDER_ENGINE_GUI_API_BACKEND environment variable before defaulting to OpenGL.

This lets tools that launch 'gz gui -c ' without forwarding the backend CLI flag still select an alternative backend via the environment. OpenGL remains the default when neither the option nor the env var is set; no behaviour change for existing users.

Checklist

  • Signed all commits for DCO
  • Added a screen capture or video to the PR description that demonstrates the feature
  • Added tests
  • Added example and/or tutorial
  • Updated documentation (as needed)
  • Updated migration guide (as needed)
  • Consider updating Python bindings (if the library has them)
  • codecheck passed (See contributing)
  • All tests passed (See test coverage)
  • Updated Bazel files (if adding new files). Created an issue otherwise.
  • While waiting for a review on your PR, please help review another open pull request to support the maintainers
  • Was GenAI used to generate this PR? If so, make sure to add "Generated-by" to your commits. (See this policy for more info.)

Generated-by: Opus 4.8.

Note to maintainers: Remember to use Squash-Merge and edit the commit message to match the pull request summary while retaining Signed-off-by and Generated-by messages.

Backports: If this is a backport, please use Rebase and Merge instead.

When the backend is not selected via the explicit C++ option
(_renderEngineGuiApiBackend == nullptr), fall back to the
GZ_GUI_RENDER_ENGINE_GUI_API_BACKEND environment variable before
defaulting to OpenGL.

This lets tools that launch 'gz gui -c <config>' without forwarding the
backend CLI flag still select an alternative backend via the environment.
OpenGL remains the default when neither the option nor the env var is set;
no behaviour change for existing users.

Generated-by: Opus 4.8
Signed-off-by: Jose Luis Rivero <jrivero@honurobotics.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

Status: Inbox

Development

Successfully merging this pull request may close these issues.

2 participants