With the new launcher the way to launch the game with my dedicated amd gpu( instead of the intergrated intel one) has changed. It used to be that all I had to do was to pass DRI_PRIME=1 before the launch command. Now the launcher doesn't pass these arguments to the game so I have made this script instead.
exec java "$@"
and use the custom java executable to launch with it.
Now, something is happening because the game doesn't launch at all when I use this. The error from the launcher log is this
[0422/190550:WARNING:x11_util.cc(1404)] X error received: serial 773, error_code 180 (GLXBadWindow), request_code 154, minor_code 32 (X_GLXDestroyWindow)
[0422/190550:WARNING:x11_util.cc(1404)] X error received: serial 779, error_code 3 (BadWindow (invalid Window parameter)), request_code 4, minor_code 0 (X_DestroyWindow)
Keep in mind, the game launches just fine with the integrated gpu. Also the game is still running in the background as the launcher gives me a warning about it if I try to launch it again. I also assume this is a launcher bug as the error appears on launcher_log.txt