<html>
    <head>
      <base href="https://bugs.freedesktop.org/">
    </head>
    <body>
      <p>
        <div>
            <b><a class="bz_bug_link 
          bz_status_REOPENED "
   title="REOPENED - Divinity: Original Sin Enhanced Edition(Native) crash on start"
   href="https://bugs.freedesktop.org/show_bug.cgi?id=93551#c46">Comment # 46</a>
              on <a class="bz_bug_link 
          bz_status_REOPENED "
   title="REOPENED - Divinity: Original Sin Enhanced Edition(Native) crash on start"
   href="https://bugs.freedesktop.org/show_bug.cgi?id=93551">bug 93551</a>
              from <span class="vcard"><a class="email" href="mailto:a.kralovic98@gmail.com" title="a.kralovic98@gmail.com">a.kralovic98@gmail.com</a>
</span></b>
        <pre>Step by step guide for GOG version:
1) Download the source for the LD_PRELOAD shim
2) Compile it using the command given inside the just downloaded patch file.
This will give you a divos-hack.so file.
gcc -s -O2 -shared -fPIC -o divos-hack.{so,c} -ldl
3) Copy the just created divos-hack.so file to your Divinity: Original Sin game
folder (the subfolder called game, within the install path)
4) now, from said game folder, run Divinity using the following command: 
allow_glsl_extension_directive_midshader=true LD_PRELOAD="divos-hack.so"
./runner.sh

Step by step guide for Steam vesion:
1) Download the source for the LD_PRELOAD shim
2) Compile it using the command given inside the just downloaded patch file.
This will give you a divos-hack.so file.
gcc -s -O2 -shared -fPIC -o divos-hack.{so,c} -ldl
3) Copy the just created divos-hack.so file to your Divinity: Original Sin game
folder (the subfolder called game, within the install path)
4) Go to the preferences of Divinity: OS in your Steam Library (right click on
the entry -> Preferences), and open the "Set Launch Options" dialogue. There,
put the following:
allow_glsl_extension_directive_midshader=true
LD_PRELOAD="divos-hack.so:$LD_PRELOAD" %command%

source:
<a href="https://www.gamingonlinux.com/articles/divinity-original-sin-may-soon-work-with-mesa-drivers.8867/page=2#r81524">https://www.gamingonlinux.com/articles/divinity-original-sin-may-soon-work-with-mesa-drivers.8867/page=2#r81524</a></pre>
        </div>
      </p>


      <hr>
      <span>You are receiving this mail because:</span>

      <ul>
          <li>You are the QA Contact for the bug.</li>
          <li>You are the assignee for the bug.</li>
      </ul>
    </body>
</html>