I feel like an idiot for asking this, but here goes.
Why does this work?
glGenTextures(1, &Texture);
glBindTexture(GL_TEXTURE_2D, Texture);
glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MAG_FILTER, GL_LINEAR);
glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MIN_FILTER, GL_LINEAR);
gluBuild2DMipmaps(GL_TEXTURE_2D, GL_RGB, 256,256,GL_RGB,GL_UNSIGNED_BYTE, image);
glBindTexture(GL_TEXTURE_2D, Texture);
But this doesn't?
glGenTextures(1, &Texture);
glBindTexture(GL_TEXTURE_2D, Texture);
glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MAG_FILTER, GL_LINEAR);
glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MIN_FILTER, GL_LINEAR);
glTexImage2D(GL_TEXTURE_2D, 0, GL_RGB, 255, 256, 0, GL_RGB, GL_UNSIGNED_BYTE, image);
glBindTexture(GL_TEXTURE_2D, Texture);
The first one displays the texture, the second one doesn't. Am I forgetting something?
"It's better to regret something you've done than to regret something you haven't done."