From eab37f7fced6a5cf3241696bcf3eb0f07f6f1450 Mon Sep 17 00:00:00 2001 From: "rem..om" Date: Mon, 17 Sep 2012 20:14:58 +0000 Subject: [PATCH] Reverted changes in RenderManager from previous commit as they were not meant to be committed and unrelated to the change git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9748 75d07b2b-3a1a-0410-a2c5-0572b91ccdca --- engine/src/core/com/jme3/renderer/RenderManager.java | 3 --- 1 file changed, 3 deletions(-) diff --git a/engine/src/core/com/jme3/renderer/RenderManager.java b/engine/src/core/com/jme3/renderer/RenderManager.java index 8a337ea96..e192c4555 100644 --- a/engine/src/core/com/jme3/renderer/RenderManager.java +++ b/engine/src/core/com/jme3/renderer/RenderManager.java @@ -500,14 +500,11 @@ public class RenderManager { //else the geom is not rendered if (forcedTechnique != null) { if (g.getMaterial().getMaterialDef().getTechniqueDef(forcedTechnique) != null) { - RenderState s = forcedRenderState; - forcedRenderState = g.getMaterial().getMaterialDef().getTechniqueDef(forcedTechnique).getRenderState(); tmpTech = g.getMaterial().getActiveTechnique() != null ? g.getMaterial().getActiveTechnique().getDef().getName() : "Default"; g.getMaterial().selectTechnique(forcedTechnique, this); // use geometry's material g.getMaterial().render(g, this); g.getMaterial().selectTechnique(tmpTech, this); - forcedRenderState = s; //Reverted this part from revision 6197 //If forcedTechnique does not exists, and frocedMaterial is not set, the geom MUST NOT be rendered } else if (forcedMaterial != null) {