Skip to content

Expose active graphics context and host EGL resolver#27

Closed
DelWow wants to merge 3 commits into
minecraft-linux:masterfrom
DelWow:agent/p2-capability-report
Closed

Expose active graphics context and host EGL resolver#27
DelWow wants to merge 3 commits into
minecraft-linux:masterfrom
DelWow:agent/p2-capability-report

Conversation

@DelWow

@DelWow DelWow commented Jul 18, 2026

Copy link
Copy Markdown

What changed

  • add a normalized GraphicsContextInfo contract
  • report the actual GLFW, SDL3, or EGLUT implementation
  • expose the created client API, version, profile, and creation API where the backend can query them
  • expose each active backend's host EGL procedure resolver
  • preserve exact function-pointer types across the resolver boundary
  • delegate both capabilities through the fallback window manager

Why

MCPELauncher previously retained only the requested graphics API. That is not authoritative because GLFW can retry an OpenGL ES 3 request as ES 2, and the GLFW/EGLUT fallback can select a different implementation. The client also needs to query the host ANGLE/EGL display separately from launcher-owned fake EGL exports.

This provides upstream-friendly diagnostics while the context is current, without changing rendering behavior.

Validation

  • built as part of the client-only arm64 Debug target on macOS
  • packaged GLFW/EGL smoke reported the actual OpenGL ES 3.1 context
  • the dedicated resolver returned the host EGL identity used by ANGLE
  • final client report separately captured fake guest EGL and host EGL identities
  • SDL3, EGLUT, GLFW, and fallback implementations were reviewed for lifecycle and ABI consistency

@DelWow DelWow changed the title Expose active graphics context identity Expose active graphics context and host EGL resolver Jul 18, 2026
@DelWow DelWow closed this Jul 18, 2026
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