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