Commits

Michael Ludwig committed dcc750c

Fix bug in state tree building for shadow maps.

Comments (0)

Files changed (1)

ferox-scene/src/main/java/com/ferox/scene/controller/ffp/ShadowMapCache.java

                 // create a new state so we don't mutate value stached in collection
                 geom = new GeometryState();
             }
-            Integer renderStateIndex = geomState.get(geom);
+            Integer renderStateIndex = renderState.get(render);
             if (renderStateIndex == null) {
                 renderStateIndex = renderLookup.size();
                 renderLookup.add(render);