I am currently using this simple code to generate and then update a GL_TEXTURE:
Texture creation:
glPixelStorei(GL_UNPACK_ALIGNMENT, 1); glGenTex