diff --git a/common/gal/opengl/opengl_gal.cpp b/common/gal/opengl/opengl_gal.cpp index 7cdfc20555..3bb06802e3 100644 --- a/common/gal/opengl/opengl_gal.cpp +++ b/common/gal/opengl/opengl_gal.cpp @@ -1492,6 +1492,9 @@ void OPENGL_GAL::DrawBitmap( const BITMAP_BASE& aBitmap, double alphaBlend ) glDepthFunc( GL_ALWAYS ); + glAlphaFunc( GL_GREATER, 0.01f ); + glEnable( GL_ALPHA_TEST ); + glMatrixMode( GL_TEXTURE ); glPushMatrix(); glTranslated( 0.5, 0.5, 0.5 ); @@ -1538,6 +1541,8 @@ void OPENGL_GAL::DrawBitmap( const BITMAP_BASE& aBitmap, double alphaBlend ) glPopMatrix(); glMatrixMode( GL_MODELVIEW ); + glDisable( GL_ALPHA_TEST ); + glDepthFunc( GL_LESS ); }