texture mapping question-can't get the right color

I use a function and generate a texture .In which I use glTexImage2D(GL_TEXTURE_2D, 0, 3, nTextureWidth, nTextureHeight, 0, GL_BGR_EXT, GL_UNSIGNED_BYTE, pBitmapData);

And I use other Command to map this picture onto an object with command
glActiveTexture(GL_TEXTURE0_ARB);
glBindTexture (GL_TEXTURE_2D, texName[1]);
glEnable(GL_TEXTURE_2D);
glTexEnvf(GL_TEXTURE_ENV, GL_TEXTURE_ENV_MODE, GL_COMBINE_EXT);
glTexEnvf(GL_TEXTURE_ENV, GL_COMBINE_RGB_EXT, GL_REPLACE);

glTexEnvf(GL_TEXTURE_ENV, GL_SOURCE0_RGB_EXT, GL_TEXTURE);
glTexEnvf(GL_TEXTURE_ENV, GL_OPERAND0_RGB_EXT, GL_SRC_COLOR);

but I can’t get the correct color of the origin texture. who can help me!

Try this before your code …

glColor3f(1,1,1);

Hope that helps!