PDA

View Full Version : glDrawPixels ERROR



aQ
01-09-2005, 07:52 PM
:(
I use glDrawPixels to draw a bitmap on the screen after I call glPixelZoom(xscale,yscale);
glPixelStorei(GL_UNPACK_ROW_LENGTH,GetDocument()->GetImage()->GetWidth());//TextureImage[0]->sizeX
glPixelStorei(GL_UNPACK_SKIP_ROWS,cy);
glPixelStorei(GL_UNPACK_SKIP_PIXELS,cx);

glPixelStorei(GL_UNPACK_ALIGNMENT,4);
when cx is more then some value,
It comes out ERROR like this:
read adress 0x07db8001 occur access confilct
but sometimes this program can work properly on the another PC.
who can tell me what is wrong?