When i reinstalled all dependencies of virtualgl and dependencies of mesa it now works. If anyone ever come across with such a problem just reinstall mesa and virtualgl dependencies along with virtualgl.
]]>I went to options and enabled small textures and after that running game with "primusrun %command%" works. And it is disgusting to play with that bad graphics.
Don't have any idea why big textures causing this error with nvidia.
]]>Dont Starve crashes immediately after it starts whenever i run with "optirun %command%", "optirun -b primus %command%" or "primusrun %command%" while it runs fine with intel graphics card.
My system is 32 Bit Arch.
the output of lspci | grep VGA
00:02.0 VGA compatible controller: Intel Corporation 2nd Generation Core Processor Family Integrated Graphics Controller (rev 09)
01:00.0 VGA compatible controller: NVIDIA Corporation GF108M [GeForce GT 540M] (rev ff)
I use bumblebee and primus with nvidia. And my system is up-todate currently. And glxspheres runs perfectly with all commands tried above.
Also i tried to run steam with "STEAM_RUNTIME=0 steam" and tried all options above(installed all required steam libs). Disabled the "steam overlay while in game".
Reinstalled nvidia bumblebee primus xf86-video-intel.
Don't know what else to do.
EDIT:
Just realized now it also fails to run with intel graphics while steam runs as STEAM_RUNTIME=0.