Fix up ccc29e9776 for masked images.

(cherry picked from commit 977912dcd5)
This commit is contained in:
Alex Shvartzkop 2023-10-24 03:59:03 +03:00
parent eadc902f84
commit f5e13c5ceb
1 changed files with 1 additions and 1 deletions

View File

@ -218,7 +218,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;