diff --git a/engine/src/core/com/jme3/material/RenderState.java b/engine/src/core/com/jme3/material/RenderState.java index cbb8ff0a9..0aa8b45d6 100644 --- a/engine/src/core/com/jme3/material/RenderState.java +++ b/engine/src/core/com/jme3/material/RenderState.java @@ -658,9 +658,13 @@ public class RenderState implements Cloneable, Savable { **/ public void setPolyOffset(float factor, float units) { applyPolyOffset = true; - offsetEnabled = true; - offsetFactor = factor; - offsetUnits = units; + if (factor == 0 && units == 0) { + offsetEnabled = false; + } else { + offsetEnabled = true; + offsetFactor = factor; + offsetUnits = units; + } cachedHashCode = -1; } diff --git a/engine/src/core/com/jme3/post/HDRRenderer.java b/engine/src/core/com/jme3/post/HDRRenderer.java index bac8334ab..8bddf9618 100644 --- a/engine/src/core/com/jme3/post/HDRRenderer.java +++ b/engine/src/core/com/jme3/post/HDRRenderer.java @@ -186,7 +186,6 @@ public class HDRRenderer implements SceneProcessor { blockSize.y / pixelSize.y); numPixels = blocks.x * blocks.y; } - System.out.println(numPixels); mat.setBoolean("Blocks", true); if (mode == LUMMODE_ENCODE_LUM)