-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
python: make it possible to skip gl.Context.current() blowing up.
This was originally added in d6fec89 as a doc-generation-only hack, but other tools such as stub generation may need similar special cases, so it's now a env var check in the binding generation directly. It's not a check in every invocation because that *feels* slow (although pybind11 itself likely does a lot more nasty string comparisons, hashmap lookups and linked link traversal than that), so if such an env var was defined while importing the module, the current() is then forever broken, until interpreter restart.
- Loading branch information
Showing
2 changed files
with
21 additions
and
23 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters