@mimine
Have you looked at the Ubuntu updates for Mesa for Bionic ?
https://packages.ubuntu.com/source/bionic-updates/mesa
Also, Mesa has two versions and you might need to check which build is relevant for your hardware. The legacy products are supported by the Amber branch.
https://docs.mesa3d.org/amber.html
To compile the application, it does require a number of pre-requisite 3rd party tools and is not necessarily straightforward for a beginner.
The latest build of Puppy S15Pup32 or 64 have a more updated version of Mesa included.
Why not give it a test spin and see if it resolves your current issue?