Before you do anything you should try upgrading to Ubuntu 14.04(it comes with Mesa 10.1.0 and is also a longterm release), and see if that fixes the problem.
To see what OpenGL version your system supports type this command into terminal.
glxinfo | grep OpenGL
If you need a newer mesa on Ubuntu use the Xorg-edgers ppa.
https://launchpad.net/~xorg-edgers/+archive/ppa
And you can get the latest kernel releases packaged for Ubuntu from here.
http://kernel.ubuntu.com/~kernel-ppa/mainline/
To see what OpenGL version your system supports type this command into terminal.
glxinfo | grep OpenGL
If you need a newer mesa on Ubuntu use the Xorg-edgers ppa.
https://launchpad.net/~xorg-edgers/+archive/ppa
And you can get the latest kernel releases packaged for Ubuntu from here.
http://kernel.ubuntu.com/~kernel-ppa/mainline/
