   glgentextures in different functions
  Hello..I perform 6 glgentextures(1, &id) calls along my program, resulting 1,2,3,4,5,6 id numbers. Now I am trying the same but in two diferent functions..glgentextures(1, &id) calls in the first function generates 1,2,3,4 for ids. And the second function uses glgentextures twice, but the resulting ids are 1,2..Why does opengl reset number id secuence???? It causes the read texture was wrong..A solution please...I have to use two functions thanks.   
  Sorry, I didn't realize that I was deleting some textures before calling glgentextures in the second function..this explains that behavior..   