Attribute location cache needs to be cleaned every glLinkProgram call.