View Full Version : Problem with glDrawPixels

04-16-2003, 12:31 AM

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

04-16-2003, 01:21 AM
glDisable(GL_TEXTURE_2D) before calling glDrawPixels.

04-16-2003, 10:55 AM

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