Fix up 75c758e5f4
for masked images.
This commit is contained in:
parent
e6cf5e5e01
commit
977912dcd5
|
@ -219,7 +219,7 @@ GLuint GL_BITMAP_CACHE::cacheBitmap( const BITMAP_BASE* aBitmap )
|
|||
{
|
||||
memcpy( dstP, srcP, 3 );
|
||||
|
||||
if( dstP[0] == maskRed && dstP[1] == maskGreen && dstP[2] == maskBlue )
|
||||
if( srcP[0] == maskRed && srcP[1] == maskGreen && srcP[2] == maskBlue )
|
||||
dstP[3] = wxALPHA_TRANSPARENT;
|
||||
else
|
||||
dstP[3] = wxALPHA_OPAQUE;
|
||||
|
|
Loading…
Reference in New Issue