now binds attributes before linking the shader.