소스 검색

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

Harald Csaszar 2 년 전
부모
커밋
9c411cd776
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  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
 				// set blend state
 				BlendState blend = slot.Data.BlendMode == BlendMode.Additive ? BlendState.Additive : defaultBlendState;
 				BlendState blend = slot.Data.BlendMode == BlendMode.Additive ? BlendState.Additive : defaultBlendState;
 				if (device.BlendState != blend) {
 				if (device.BlendState != blend) {
-					//End();
-					//device.BlendState = blend;
+					End();
+					device.BlendState = blend;
 				}
 				}
 
 
 				// calculate color
 				// calculate color