initial texturecounter is 0 because texture buffer can't be 0. if id is 0 always create a texture buffer.