skybox color prob

i have a skybox and when i try to color objects in my world the skybox gets the color

This doesn’t seem like an advanced question. You need to ensure that the correct state is set before rendering each primitive. OpenGL does not re-set any state when you call SwapBuffers, so it’s probably the color of your last item leaking over to the skybox. To see whether this is the case, add a glColor4f( 1,1,1,1 ) before drawing the skybox.