....and it seems to work with MESA. But uniforms work when I use the ShaderDesigner. So, it must be a bug in my program.