Babylon > 4.1 weird mipmap issue

I’ve created a shader that handles tiling and mipmapping. It looks fine on Babylon 4.0 which you can see here:

but it looks bad on later Babylon versions, which you can see here:

Does anyone know what’s changed?

Here we are: (check the trilinear sampling mode on line 209)

The bilinear setting was wrongly setting the mipmap on by default on 4.0.

We fixed the issue on 4.1