Permalink
Browse files

GLVideoDriver: fix for previous commit

  • Loading branch information...
1 parent 585357f commit f0b5613a91b6b7cf8ce83ea57d9afd94639392ff @BehoIder BehoIder committed with lynxlynxlynx Feb 25, 2014
Showing with 1 addition and 1 deletion.
  1. +1 −1 gemrb/plugins/SDLVideo/GLTextureSprite2D.cpp
@@ -143,7 +143,7 @@ void GLTextureSprite2D::createGlTexture()
Uint8 g = (src & gMask) >> GetShiftValue(gMask);
Uint8 b = (src & bMask) >> GetShiftValue(bMask);
Uint8 a = (src & aMask) >> GetShiftValue(aMask);
- if (a == 0 && aMask == 0) a = 0xFF; //no transparency
+ if (aMask == 0) a = 0xFF; //no transparency
if (src == colorKeyIndex) a = 0x00; // transparent
buffer[i] = r | (g << 8) | (b << 16) | (a << 24);
}

0 comments on commit f0b5613

Please sign in to comment.