[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: saving image from tkgllua buffer
- From: "Antonio E. Scuri" <scuri@...>
- Date: Thu, 06 Jan 2000 18:04:12 -0200
We had a similar problem when saving images from an OpenGL canvas, and
the solution was to call
glPixelStorei(GL_PACK_ALIGNMENT,1);
before calling
glReadPixels(xmin,ymin,width,height,GL_RED,GL_UNSIGNED_BYTE,red);
glReadPixels(xmin,ymin,width,height,GL_GREEN,GL_UNSIGNED_BYTE,green);
glReadPixels(xmin,ymin,width,height,GL_BLUE,GL_UNSIGNED_BYTE,blue);
But It may be not the solution of your case.
Regards,
Antonio Scuri