material and light problem

Good day.
When i use glmaterial to use a material for the current triangles, light doesn’t stay fixed.
Normally i reset light position every frame, but when i use
the material , light position is ignored, if i remove the line using the material , everything works fine.
What am i doing wrong ?