Rust (video Game) crashes with 396.18 drivers

I’m running into the same issue using driver 415.22 on Gentoo and the workaround didn’t appear to help.

Just to make sure I’m using the workaround correctly, I’m doing this:

$ cat ~/rush.sh 
#!/bin/bash
cd ~/.local/share/Steam/steamapps/common/Rust

export LD_LIBRARY_PATH=.
export __GL_GlslUseCollapsedArrays=0

./rust

The LD_LIBRARY_PATH is due to another unrelated issue. I confirmed the enviromment variable was set, based on catting the contents of /proc/RUST_PID/environ.