gluBuild1DMipmaps bug?

Has anyone found any issues when using gluBuild1DMipmaps? The exact call I’m using is:

gluBuild1DMipmaps(GL_TEXTURE_1D, GL_RGBA, size, GL_RGBA, GL_FLOAT, data);

And instead of getting a nice gradient I get weird multi-colored stripes in my texture. It works fine if I use glTexImage1D() to build the texture, but with shimmering of course when things are small.

Yes, my data is formatted as RGBA floats

– Zeno

Try using GL_RGBA8 instead of GL_RGBA in the second parameter.