Original Post
I am doing a win32 windowed app that renders in openGL. The problem i run into deals with rendering a 3D triangle after i render a texture onto a 2D quad. Befor i draw the quad the triangle is white, however after i render the 2D textured quad it becomes grey. Once this happens even if i put in glColor and set it to be white again it turns grey anyways. I am not real sure why this is and any hlep as to whats happening would be welcome. below is some of the drawing code.
void DrawGL(void) {
glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT);
glLoadIdentity();
gluLookAt(camera.Position.x, camera.Position.y, camera.Position.z,
camera.View.x, camera.View.y, camera.View.z,
camera.Up_Vector.x, camera.Up_Vector.y, camera.Up_Vector.z);
if(!terrain.IsDataEmpty()) {
Begin2D();
glBegin(GL_QUADS);
glBindTexture(GL_TEXTURE_2D, 1);
glTexCoord2f(0.0f, 1.0f);
glVertex2f(WindowRect.left, WindowRect.top);
glTexCoord2f(0.0f, 0.0f);
glVertex2f(WindowRect.left + 200, WindowRect.top);
glTexCoord2f(1.0f, 0.0f);
glVertex2f(WindowRect.left + 200, WindowRect.top + 200);
glTexCoord2f(1.0f, 1.0f);
glVertex2f(WindowRect.left, WindowRect.top + 200);
glEnd();
End2D();
}//end !IsDataEmpty if
glBegin(GL_TRIANGLES);
glVertex3f(0, 3, -1);
glVertex3f(-1, 0, -1);
glVertex3f(1, 0, -1);
glEnd();
SwapBuffers(hdc);
}//end DrawGL