mirror of
https://gitlab.com/kicad/code/kicad.git
synced 2025-04-07 17:25:33 +00:00
Set UNPACK_ALIGNMENT properly for RGB bitmaps,
This commit is contained in:
parent
0e4553b1fa
commit
00904e8e23
@ -185,6 +185,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
Block a user