linux-steam-integration icon indicating copy to clipboard operation
linux-steam-integration copied to clipboard

Fix for Divinity: Original Sin EE

Open aleksvor opened this issue 7 years ago • 3 comments

D: OSEE has a longstanding bug with Mesa that prevents it from starting. There is a workaround for it though, requiring to compile shim for the game and LD_PRELOAD it. It seems that both Mesa and Larian won't make a proper fix for this, so... can it be implemented in LSI?

aleksvor avatar Nov 10 '17 10:11 aleksvor

What kind of detection do we need to do here? If any? Ideally I don't want to cause mesa issues for other users, though I'm still quite happy (if possible) to implement this into lsi-redirect

ikeydoherty avatar Dec 15 '17 01:12 ikeydoherty

I think, it could be implemented just for one game, because it's a very specific problem. As far as I understand, the game asks the driver for the vendor string (glGetString function) when it starts, and it expects to get the string from the proprietary Nvidia driver or discontinued proprietary AMD driver (fglrx), otherwise it refuses to start. If you preload the shim which overrides glGetString, the game starts and plays as it should. You can see the code for the shim which makes the game playable on Mesa: https://bugs.freedesktop.org/attachment.cgi?id=125302 I wonder if you can implement these overrides in lsi? Now I'm playing with self-compiled preloaded shim, but it isn't very user-friendly.

aleksvor avatar Dec 15 '17 06:12 aleksvor

@ikeydoherty , so what do you think?

aleksvor avatar Feb 14 '18 17:02 aleksvor