Parcourir la source

[xna][monogame] Fixed slot BlendMode.Additive having no effect. Closing #2215.

Harald Csaszar il y a 2 ans
Parent
commit
9c411cd776
1 fichiers modifiés avec 2 ajouts et 2 suppressions
  1. 2 2
      spine-monogame/spine-monogame/src/SkeletonRenderer.cs

+ 2 - 2
spine-monogame/spine-monogame/src/SkeletonRenderer.cs

@@ -153,8 +153,8 @@ namespace Spine {
 				// set blend state
 				BlendState blend = slot.Data.BlendMode == BlendMode.Additive ? BlendState.Additive : defaultBlendState;
 				if (device.BlendState != blend) {
-					//End();
-					//device.BlendState = blend;
+					End();
+					device.BlendState = blend;
 				}
 
 				// calculate color