rendering phong after basic materials on same geometry causes webgl error