Set UNPACK_ALIGNMENT properly for RGB bitmaps.
(cherry picked from commit 00904e8e23
)
This commit is contained in:
parent
480dfafb4f
commit
53fe2a7203
|
@ -184,6 +184,8 @@ GLuint GL_BITMAP_CACHE::cacheBitmap( const BITMAP_BASE* aBitmap )
|
|||
m_freedTextureIds.pop_front();
|
||||
}
|
||||
|
||||
glPixelStorei( GL_UNPACK_ALIGNMENT, 1 );
|
||||
|
||||
if( imgData.HasAlpha() || imgData.HasMask() )
|
||||
{
|
||||
bmp.size = bmp.w * bmp.h * 4;
|
||||
|
|
Loading…
Reference in New Issue