From dafc30b2d0a2a2e43a2e056b5aa051de6c56f08b Mon Sep 17 00:00:00 2001 From: vincentlj Date: Tue, 14 Jan 2014 01:31:26 +0000 Subject: [PATCH] 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 --- src/graphics/glwrap.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/graphics/glwrap.cpp b/src/graphics/glwrap.cpp index a01d93da4..69030a9e0 100644 --- a/src/graphics/glwrap.cpp +++ b/src/graphics/glwrap.cpp @@ -454,6 +454,7 @@ void draw2DImage(const video::ITexture* texture, const core::rect& 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& position, if (color.getAlpha() < 255) { glEnable(GL_BLEND); + glBlendFunc(GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA); } else {