Skip to content

gl-context: Fix re-entrancy of call-as-current#60

Open
lexi-lambda wants to merge 1 commit into
racket:masterfrom
lexi-lambda:fix-gl-context-reentrancy
Open

gl-context: Fix re-entrancy of call-as-current#60
lexi-lambda wants to merge 1 commit into
racket:masterfrom
lexi-lambda:fix-gl-context-reentrancy

Conversation

@lexi-lambda
Copy link
Copy Markdown
Member

The call-as-current method of gl-context<%> is documented to support nested calls using a re-entrant lock. However, in practice, nested uses do not work correctly, as returning from a nested call will unbind the current GL context, causing all future operations to fail. This PR corrects the oversight.

@lexi-lambda lexi-lambda force-pushed the fix-gl-context-reentrancy branch from fc9ea0d to 7e3db18 Compare March 26, 2026 04:31
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