Relax a shader pipeline requirement.

The requirement being that there is only one shader of a specific type.
Fix a bug that made instanced rendering unusable.

The divisor for a vertex array object was not set correctly. There was no VAO
bound when the divisor was set.