i´m having a small openGL scene with a few cubes floating around and a light source. now if i try to apply a texture to one of the cubes, the whole scene gets a lot darker although the light is still on.
i initialize the texture a sfollows, shouldn´t be a problem!?
glGenTextures(1, &texture[0]);
glBindTexture(GL_TEXTURE_2D, texture[0]);
glTexParameteri(GL_TEXTURE_2D,GL_TEXTURE_MAG_FILTER,GL_LINEAR);
glTexParameteri(GL_TEXTURE_2D,GL_TEXTURE_MIN_FILTER,GL_LINEAR_MIPMAP_NEAREST);
gluBuild2DMipmaps(GL_TEXTURE_2D, 3, text1->w, text1->h, GL_RGB, GL_UNSIGNED_BYTE, text1->pixels);