SOLVED fglrx on ubuntu 14.04 and wine problems

If you have fglrx display driver, run 64-bit system and run 32-programs under wine you may face problem with OpenGL.

Sometimes 32-bit windows programs (under wine) which use OpenGL stop working giving criptic error messages.

The problem is that they lost correct 32-bit Mesa driver. Following commands fix the problem:

rm /usr/lib/i386-linux-gnu/mesa/libGL.so.1
ln -s /usr/lib32/fglrx/libGL.so.1 /usr/lib/i386-linux-gnu/mesa/libGL.so.1