I used GlGenTextures. I use an array of textures and somehow they were swapped, wrong size, I don't remember exactly.