Skip to content

Fix static method proxying in trace mode, support CGL/GLX/WGL context bindings#46

Merged
httpdigest merged 2 commits into
LWJGLX:mainfrom
bondolo:proxy-static
Jun 21, 2026
Merged

Fix static method proxying in trace mode, support CGL/GLX/WGL context bindings#46
httpdigest merged 2 commits into
LWJGLX:mainfrom
bondolo:proxy-static

Conversation

@bondolo

@bondolo bondolo commented May 30, 2026

Copy link
Copy Markdown
Contributor

fixes two issues.

bondolo added 2 commits May 30, 2026 16:25
Only proxy static method references (H_INVOKESTATIC), and generate fallback overloads with original signatures to support linkage when TRACE is enabled.
- Intercept GLX, WGL, and CGL context make-current calls to register thread-local context bindings for non-GLFW/SDL environments.
- If capability creation is triggered on an untracked active context initialize a fallback on the current thread and log a warning with a stacktrace.
@bondolo bondolo mentioned this pull request Jun 3, 2026
@bondolo

bondolo commented Jun 20, 2026

Copy link
Copy Markdown
Contributor Author

ping @httpdigest @Spasi

@httpdigest httpdigest merged commit d7ac5e1 into LWJGLX:main Jun 21, 2026
1 check passed
@httpdigest

Copy link
Copy Markdown
Member

@bondolo thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants