Remove unused varying in the generic shader
Add asserts to make sure the correct shader is bound when setting uniforms