Another patch was sent for this bug as well: [PATCH] glsl: uniform sampler should occupy 1 location I don't have any idea what the appropriate fix is, I just wanted to let you know.