Changeset 3201

Show
Ignore:
Timestamp:
07/28/04 14:38:54 (10 years ago)
Author:
robert
Message:

Replaced GL_PACK_ROW_LENGTH by GL_UNPACK_ROW_LENGTH

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • OpenSceneGraph/trunk/src/osg/DrawPixels.cpp

    r1529 r3201  
    9797    { 
    9898        const GLvoid* pixels = _image->data(_offsetX,_offsetY); 
    99         glPixelStorei(GL_PACK_ROW_LENGTH,_image->s()); 
     99        glPixelStorei(GL_UNPACK_ROW_LENGTH,_image->s()); 
    100100        glDrawPixels(_width,_height, 
    101101                     (GLenum)_image->getPixelFormat(), 
    102102                     (GLenum)_image->getDataType(), 
    103103                     pixels); 
    104         glPixelStorei(GL_PACK_ROW_LENGTH,0); 
     104        glPixelStorei(GL_UNPACK_ROW_LENGTH,0); 
    105105    } 
    106106    else