Force blending mode for draw2d.

git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@15070 178a84e3-b1eb-0310-8ba1-8eac791a3b58
This commit is contained in:
vincentlj 2014-01-14 01:31:26 +00:00
parent 23d0b42b5f
commit dafc30b2d0

View File

@ -454,6 +454,7 @@ void draw2DImage(const video::ITexture* texture, const core::rect<s32>& destRect
if (useAlphaChannelOfTexture)
{
glEnable(GL_BLEND);
glBlendFunc(GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA);
}
else
{
@ -503,6 +504,7 @@ void GL32_draw2DRectangle(video::SColor color, const core::rect<s32>& position,
if (color.getAlpha() < 255)
{
glEnable(GL_BLEND);
glBlendFunc(GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA);
}
else
{