fix for issue #99 (pr #1082)

fix-openal-soft-deadlink
Stephen Gold 6 years ago committed by GitHub
parent 3ec89ce499
commit 194ae883c5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 4
      jme3-niftygui/src/main/java/com/jme3/niftygui/JmeBatchRenderBackend.java
  2. 4
      jme3-niftygui/src/main/java/com/jme3/niftygui/RenderDeviceJme.java

@ -1,5 +1,5 @@
/* /*
* Copyright (c) 2009-2018 jMonkeyEngine * Copyright (c) 2009-2019 jMonkeyEngine
* All rights reserved. * All rights reserved.
* *
* Redistribution and use in source and binary forms, with or without * Redistribution and use in source and binary forms, with or without
@ -541,7 +541,7 @@ public class JmeBatchRenderBackend implements BatchRenderBackend {
} else if (blendMode == BlendMode.BLEND) { } else if (blendMode == BlendMode.BLEND) {
return RenderState.BlendMode.Alpha; return RenderState.BlendMode.Alpha;
} else if (blendMode == BlendMode.MULIPLY) { } else if (blendMode == BlendMode.MULIPLY) {
return RenderState.BlendMode.Modulate; return RenderState.BlendMode.Alpha;
} else { } else {
throw new UnsupportedOperationException(); throw new UnsupportedOperationException();
} }

@ -1,5 +1,5 @@
/* /*
* Copyright (c) 2009-2012 jMonkeyEngine * Copyright (c) 2009-2019 jMonkeyEngine
* All rights reserved. * All rights reserved.
* *
* Redistribution and use in source and binary forms, with or without * Redistribution and use in source and binary forms, with or without
@ -209,7 +209,7 @@ public class RenderDeviceJme implements RenderDevice {
} else if (blendMode == BlendMode.BLEND) { } else if (blendMode == BlendMode.BLEND) {
return RenderState.BlendMode.Alpha; return RenderState.BlendMode.Alpha;
} else if (blendMode == BlendMode.MULIPLY) { } else if (blendMode == BlendMode.MULIPLY) {
return RenderState.BlendMode.Modulate; return RenderState.BlendMode.Alpha;
} else { } else {
throw new UnsupportedOperationException(); throw new UnsupportedOperationException();
} }

Loading…
Cancel
Save