Skip to content

x11: Use the GLXFBConfig to set the visual of an OpenGL canvas#364

Open
lexi-lambda wants to merge 1 commit intoracket:masterfrom
lexi-lambda:x11-set-gl-canvas-visual
Open

x11: Use the GLXFBConfig to set the visual of an OpenGL canvas#364
lexi-lambda wants to merge 1 commit intoracket:masterfrom
lexi-lambda:x11-set-gl-canvas-visual

Conversation

@lexi-lambda
Copy link
Member

Currently, when creating an OpenGL canvas% under X11, racket/gui does not properly arrange for the X window’s Visual to be the one GLX selects for a given GLXFBConfig. Without doing this, GLX may silently fall back to a more limited config, which prevents certain features from working correctly (most notably multisampling). This PR fixes the issue by explicitly setting the GTK widget’s visual before it is realized, which ensures the X window’s visual will be initialized appropriately.

Without doing this, the visual will not necessarily match that required
by GLX, which prevents certain features from working correctly, most
notably multisampling.
@lexi-lambda lexi-lambda force-pushed the x11-set-gl-canvas-visual branch from 9e8d7e7 to 92731f6 Compare March 17, 2026 00:57
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