From 5be03af56413569307bf52f788a3035b09faabfa Mon Sep 17 00:00:00 2001 From: Kirill Vainer Date: Sat, 5 Mar 2016 19:30:28 -0500 Subject: [PATCH] material: fix sort id unit test failure --- jme3-core/src/main/java/com/jme3/material/Technique.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/jme3-core/src/main/java/com/jme3/material/Technique.java b/jme3-core/src/main/java/com/jme3/material/Technique.java index 9dee91241..aecf5ab97 100644 --- a/jme3-core/src/main/java/com/jme3/material/Technique.java +++ b/jme3-core/src/main/java/com/jme3/material/Technique.java @@ -184,9 +184,9 @@ public final class Technique { * @return the sort ID for this technique instance. */ public int getSortId() { - int hash = 17; - hash = hash * 23 + def.getSortId(); - hash = hash * 23 + dynamicDefines.hashCode(); - return hash; + int hash = 17; + hash = hash * 23 + def.getSortId(); + hash = hash * 23 + paramDefines.hashCode(); + return hash; } }