Problem with glDrawPixels

Hi,

I’m using the function glDrawPixels:
glDrawPixels(width, height, GL_RGB, GL_UNSIGNED_BYTE, pixmap);

I’ve checked all of the parameters - it’s OK.
But I saw that this function draws last binded texture (or mixing it with pixmap)!!!
I tried to change glTexEnvi but it gave nothing.

What should I do that glDrawPixels draws only colors from ‘pixmap’ pointer???
Does glBindTexture may use the same memory area as pixmap?? I don’t think so. And I don’t know where is the problem.

thanks for any help

glDisable(GL_TEXTURE_2D) before calling glDrawPixels.

Thanks!

This is strange but I saw that I can occur the same with tex env mode setting to GL_BLEND.