gluScaleImage for 3D texture

Hi,
I need to use the not-power-of-two 3D texture. But the gluSceleImage only works for 2D-texture.Is ther Any similar function for 3D-texure? Thank you.

What hardware are you on?

If you are on newer hardware you could try glGenerateMipmapEXT()