From f5e13c5ceb717304dafcee29eeb7d4b15b54a183 Mon Sep 17 00:00:00 2001 From: Alex Shvartzkop Date: Tue, 24 Oct 2023 03:59:03 +0300 Subject: [PATCH] Fix up ccc29e977674b8070d9269c5e556eb747f0b55a1 for masked images. (cherry picked from commit 977912dcd56a89fb6e3e523e5d21fee70403b5d7) --- common/gal/opengl/opengl_gal.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/gal/opengl/opengl_gal.cpp b/common/gal/opengl/opengl_gal.cpp index c848814ec5..fae690cccc 100644 --- a/common/gal/opengl/opengl_gal.cpp +++ b/common/gal/opengl/opengl_gal.cpp @@ -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;