libsdl-org / sdl12-compat

An SDL-1.2 compatibility layer that uses SDL 2.0 behind the scenes.
Other
193 stars 40 forks source link

quirks: Fixes for symbol-based quirks to force X11 #267

Closed sulix closed 1 year ago

sulix commented 1 year ago

Make some changes to how the automatic quirks for apps which link against gl[x]ew and Cg functions work. In particular:

Fixes: 2a96bb35d756 ("quirks: Force X11 on Linux if certain symbols are in the process.")

In short, it now behaves more like the other quirks.

Note that there are some downsides to this:

On the whole, though, I think this is worthwhile. I've definitely managed to get several Cg games working under wayland using a hacky LD_PRELOADed shim, which requires some way of overriding the quirk here.

icculus commented 1 year ago

I wonder how hard it would be to bind a socket, force DISPLAY to point at it, and speak just enough of the X11 protocol to make these apps survive extension lookup and glXGetProcAddress. :)

icculus commented 1 year ago

(for future reference: GitHub's "here's how to update this PR from the command line" instructions don't update the PR, they push right to main. :/ )