logo

blog

My website can't be that messy, right? git clone https://hacktivis.me/git/blog.git
commit: b7da5638eb33e7c9c1f2c48b6ba487a280063b3e
parent befaa1eafeb4939ac75bae82d7ce97ac6ec0342f
Author: Haelwenn (lanodan) Monnier <contact@hacktivis.me>
Date:   Wed,  5 May 2021 18:08:13 +0200

notes/pure-wayland: SDL2 desktop OpenGL great fixes

Diffstat:

Mnotes/pure-wayland.shtml9+++++----
1 file changed, 5 insertions(+), 4 deletions(-)

diff --git a/notes/pure-wayland.shtml b/notes/pure-wayland.shtml @@ -87,6 +87,7 @@ endif</code></pre> <li><a href="https://www.libsdl.org/">SDL2</a> (2.0.14): Yes, very close to working entirely out-of-the-box. Some workarounds being:<ul> <li>For 2.0.14 and earlier: Needing to set <code>SDL_VIDEO_GL_DRIVER=libOpenGL.so</code> or patch libSDL2 (<a href="https://github.com/libsdl-org/SDL/issues/4158">SDL#4158</a>).</li> <li>When bundled in binairies: Needing to set <code><a href="https://github.com/libsdl-org/SDL/blob/main/docs/README-dynapi.md">SDL_DYNAMIC_API</a></code> to where your distro's <code>libSDL2.so</code> library is.</li> + <li>With <a href="https://github.com/libsdl-org/SDL/pull/4358">libsdl-org/SDL#4358</a> desktop OpenGL works</li> </ul></li> <li><a href="https://www.gtk.org/">GTK</a> 3 and later: Almost. <a href="https://gitlab.gnome.org/GNOME/gtk/-/issues/699">Suggestions are broken on multi-monitors</a> as well as the usual glitches.</li> </ul> @@ -155,23 +156,23 @@ endif</code></pre> <li><a href="https://nc.itch.io/mercury">Excavation Site Mercury</a>: Need to set <code><a href="https://github.com/libsdl-org/SDL/blob/main/docs/README-dynapi.md">SDL_DYNAMIC_API</a></code> to where your distro's <code>libSDL2.so</code> library is</li> <li><a href="https://www.hempuli.com/baba/">Baba Is You</a> (Humble Bundle): Needs to run <code><a href="https://nixos.org/patchelf.html">patchelf</a> --replace-needed libGL.so.1 libOpenGL.so.0 bin64/Chowdren</code> and set <code><a href="https://github.com/libsdl-org/SDL/blob/main/docs/README-dynapi.md">SDL_DYNAMIC_API</a></code> to where your distro's <code>libSDL2.so</code> library is</li> <li><a href="https://github.com/adoptware/pinball">Emilia Pinball</a>: Either SDL2 with GLES1 support (<a href="https://github.com/gentoo/gentoo/pull/20690">gentoo/gentoo#20690</a>) and passing <code>--enable-gles</code> or applying <a href="https://github.com/libsdl-org/SDL/pull/4358">libsdl-org/SDL#4358</a> to get desktop OpenGL working</li> + <li><a href="http://chromium-bsu.sourceforge.net/">Chromium B.S.U</a> (0.9.16.1+): With SDL2 fixed for desktop OpenGL it works</li> + <li><a href="https://viewizard.com">astromenace</a> (1.4.1): With SDL2 fixed for desktop OpenGL it works</li> + <li><a href="https://www.bzflag.org/">bzflag</a> (2.4.22): Yes, done <code>sed -i -e 's;X_PRE_LIBS -lX11;X_PRE_LIBS;' -e's;\[opengl32 GL GL2\];[opengl32 GL GL2 OpenGL];' configure.ac</code>; Requires SDL2 fixed for desktop OpenGL</li> + <li><a href="http://armagetronad.org/">armagetronad</a> (trunk at <code>0ba8c6ff0aeda14d86760a1744c6296cbf8632be</code> + light fixes): With SDL2 fixed for desktop OpenGL it works</li> </ul> <h3>Doesn't works</h3> <ul> <li><a href="http://www.wesnoth.org">wesnoth</a>: No, some basic actions are broken</li> - <li><a href="https://viewizard.com">astromenace</a>: No, window fades from white to black, still get proper sound, including input feedback</li> <li><a href="https://www.openra.net/">OpenRA</a>: No, fails at runtime. <code>Unsupported OpenGL version: OpenGL ES 3.2 Mesa 20.1.10</code></li> - <li><a href="https://www.bzflag.org/">bzflag</a>: No, sets <code>-lX11</code> without testing at configuration time, needs <code>sed -i 's;\[opengl32 GL GL2\];[opengl32 GL GL2 OpenGL];' configure.ac</code> and depends on GLEW</li> <li><a href="https://www.xonotic.org/">xonotic</a>: No, depends on X11</li> <li><a href="https://www.bay12games.com/dwarves">dwarf fortress</a>: No, hard-depends on GTK2+ and libSDL-1</li> - <li><a href="http://armagetronad.org/">armagetronad</a>: Black screen in current trunk(<code>0ba8c6ff0aeda14d86760a1744c6296cbf8632be</code>)</li> <li><a href="http://www.secretmaryo.org/">Secret Maryo Chronicles</a>: No, hard depends on X11</li> <li><a href="https://secretchronicles.org/">TSC: The Secret Chronicles of Dr. M.</a>: No, because of SFML</li> <li><a href="https://extremetuxracer.sourceforge.net">Extreme Tux Racer</a>: No, because of SFML</li> <li><a href="https://github.com/Anuken/Mindustry">Mindustry</a>: Nope, <code>libsdl-arc64.so</code> is shared linked against <code>libGL.so.1</code></li> <li><a href="http://oolite.org/">oolite</a>: Nope, <a href="https://github.com/OoliteProject/oolite/issues/222">still on SDL-1.2</a></li> - <li><a href="http://chromium-bsu.sourceforge.net/">Chromium B.S.U</a>: No, I get a grey window that flashes to red from time to time. Tested on master's branch at commit <code>86b985c5c386410371b48b4169aec14b81007a59</code></li> <li><a href="https://github.com/FluffyStuff/OpenRiichi">OpenRiichi</a>: Vala looks like a mess to make it work with <code>libOpenGL.so</code> instead.</li> <li><a href="https://opensurge2d.org/">OpenSurge</a>: No because it depends on <code>liballegro_dialog</code></li> </ul>