From 194ae883c57574b88a188c2d9e7d16b6be1ef864 Mon Sep 17 00:00:00 2001 From: Stephen Gold Date: Sun, 15 Sep 2019 21:43:11 -0700 Subject: [PATCH] fix for issue #99 (pr #1082) --- .../main/java/com/jme3/niftygui/JmeBatchRenderBackend.java | 4 ++-- .../src/main/java/com/jme3/niftygui/RenderDeviceJme.java | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/jme3-niftygui/src/main/java/com/jme3/niftygui/JmeBatchRenderBackend.java b/jme3-niftygui/src/main/java/com/jme3/niftygui/JmeBatchRenderBackend.java index a8947fdea..d84c41b96 100644 --- a/jme3-niftygui/src/main/java/com/jme3/niftygui/JmeBatchRenderBackend.java +++ b/jme3-niftygui/src/main/java/com/jme3/niftygui/JmeBatchRenderBackend.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2009-2018 jMonkeyEngine + * Copyright (c) 2009-2019 jMonkeyEngine * All rights reserved. * * 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) { return RenderState.BlendMode.Alpha; } else if (blendMode == BlendMode.MULIPLY) { - return RenderState.BlendMode.Modulate; + return RenderState.BlendMode.Alpha; } else { throw new UnsupportedOperationException(); } diff --git a/jme3-niftygui/src/main/java/com/jme3/niftygui/RenderDeviceJme.java b/jme3-niftygui/src/main/java/com/jme3/niftygui/RenderDeviceJme.java index ab0fc6659..7390a3265 100644 --- a/jme3-niftygui/src/main/java/com/jme3/niftygui/RenderDeviceJme.java +++ b/jme3-niftygui/src/main/java/com/jme3/niftygui/RenderDeviceJme.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2009-2012 jMonkeyEngine + * Copyright (c) 2009-2019 jMonkeyEngine * All rights reserved. * * 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) { return RenderState.BlendMode.Alpha; } else if (blendMode == BlendMode.MULIPLY) { - return RenderState.BlendMode.Modulate; + return RenderState.BlendMode.Alpha; } else { throw new UnsupportedOperationException(); }