Added int packing parameter to Image::readPixels(..)

This commit is contained in:
Robert Osfield
2012-03-29 08:27:21 +00:00
parent 055e1258ea
commit 59d6931b59
2 changed files with 3 additions and 3 deletions

View File

@@ -918,9 +918,9 @@ void Image::setImage(int s,int t,int r,
}
void Image::readPixels(int x,int y,int width,int height,
GLenum format,GLenum type)
GLenum format, GLenum type, int packing)
{
allocateImage(width,height,1,format,type);
allocateImage(width,height,1,format,type, packing);
glPixelStorei(GL_PACK_ALIGNMENT,_packing);
glPixelStorei(GL_PACK_ROW_LENGTH,_rowLength);