Browse Source

Fix the default blend mode.

--HG--
branch : minor
Alex Szpakowski 5 years ago
parent
commit
76121ec152
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/modules/graphics/Graphics.h

+ 1 - 1
src/modules/graphics/Graphics.h

@@ -889,7 +889,7 @@ protected:
 		Colorf color = Colorf(1.0, 1.0, 1.0, 1.0);
 		Colorf color = Colorf(1.0, 1.0, 1.0, 1.0);
 		Colorf backgroundColor = Colorf(0.0, 0.0, 0.0, 1.0);
 		Colorf backgroundColor = Colorf(0.0, 0.0, 0.0, 1.0);
 
 
-		BlendState blend;
+		BlendState blend = computeBlendState(BLEND_ALPHA, BLENDALPHA_MULTIPLY);
 
 
 		float lineWidth = 1.0f;
 		float lineWidth = 1.0f;
 		LineStyle lineStyle = LINE_SMOOTH;
 		LineStyle lineStyle = LINE_SMOOTH;