luciusDXL / TheForceEngine

Modern "Jedi Engine" replacement supporting Dark Forces, mods, and in the future Outlaws.
https://TheForceEngine.github.io
GNU General Public License v2.0
946 stars 71 forks source link

Added workaround for GLEW on wayland #386

Closed Rosalie241 closed 4 months ago

Rosalie241 commented 4 months ago

This patch adds a workaround to make GLEW initialize successfully on wayland, allowing the force engine to work properly when using wayland on linux, more information and existing workarounds can be found on the following issue:

https://github.com/nigels-com/glew/issues/172

I'm not sure if this kind of workarounds are desired, so feel free to close this PR if you have no desire for such a thing!

JakeSmarter commented 4 months ago

@fpiesche This may enable or require adding --socket=wayland and --socket=fallback-x11 in the flatpak build manifest.

fpiesche commented 4 months ago

@fpiesche This may enable or require adding --socket=wayland and --socket=fallback-x11 in the flatpak build manifest.

As I understand from review feedback on other Flathub PRs I've made, these are only required for applications that are actually built for Wayland so we probably shouldn't need either, unless this comes with TFE being built against Wayland rather than X11. I'll give it a try locally though!