fix memory leak for GLProgramState create logic
Merge pull request #6781 from dabingnn/v3_work

V3 work
Merge branch 'v3' into mesh3d_work
add class static variable for EffectOutline
share the same glprogram in effect3DOutline