Explorar el Código

material: fix sort id unit test failure

Kirill Vainer hace 9 años
padre
commit
5be03af564
Se han modificado 1 ficheros con 4 adiciones y 4 borrados
  1. 4 4
      jme3-core/src/main/java/com/jme3/material/Technique.java

+ 4 - 4
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;
     }
 }