Przeglądaj źródła

- cleanup after Kirill-Bomb

git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@8426 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
nor..67 14 lat temu
rodzic
commit
cfc6036bf2

+ 9 - 9
engine/src/core/com/jme3/renderer/Statistics.java

@@ -134,10 +134,10 @@ public class Statistics {
      * @param wasSwitched If true, the shader has required a state switch
      * @param wasSwitched If true, the shader has required a state switch
      */
      */
     public void onShaderUse(Shader shader, boolean wasSwitched){
     public void onShaderUse(Shader shader, boolean wasSwitched){
-        assert shader.id >= 1;
+        assert shader.getId() >= 1;
 
 
-        if (!shadersUsed.contains(shader.id))
-            shadersUsed.add(shader.id);
+        if (!shadersUsed.contains(shader.getId()))
+            shadersUsed.add(shader.getId());
 
 
         if (wasSwitched)
         if (wasSwitched)
             numShaderSwitches++;
             numShaderSwitches++;
@@ -157,10 +157,10 @@ public class Statistics {
      * @param wasSwitched If true, the texture has required a state switch
      * @param wasSwitched If true, the texture has required a state switch
      */
      */
     public void onTextureUse(Image image, boolean wasSwitched){
     public void onTextureUse(Image image, boolean wasSwitched){
-        assert image.id >= 1;
+        assert image.getId() >= 1;
 
 
-        if (!texturesUsed.contains(image.id))
-            texturesUsed.add(image.id);
+        if (!texturesUsed.contains(image.getId()))
+            texturesUsed.add(image.getId());
 
 
         if (wasSwitched)
         if (wasSwitched)
             numTextureBinds ++;
             numTextureBinds ++;
@@ -174,10 +174,10 @@ public class Statistics {
      */
      */
     public void onFrameBufferUse(FrameBuffer fb, boolean wasSwitched){
     public void onFrameBufferUse(FrameBuffer fb, boolean wasSwitched){
         if (fb != null){
         if (fb != null){
-            assert fb.id >= 1;
+            assert fb.getId() >= 1;
 
 
-            if (!fbosUsed.contains(fb.id))
-                fbosUsed.add(fb.id);
+            if (!fbosUsed.contains(fb.getId()))
+                fbosUsed.add(fb.getId());
         }
         }
 
 
         if (wasSwitched)
         if (wasSwitched)

+ 2 - 2
engine/src/test/jme3test/stress/TestLeakingGL.java

@@ -35,12 +35,12 @@ package jme3test.stress;
 import com.jme3.app.SimpleApplication;
 import com.jme3.app.SimpleApplication;
 import com.jme3.material.Material;
 import com.jme3.material.Material;
 import com.jme3.math.Vector3f;
 import com.jme3.math.Vector3f;
-import com.jme3.renderer.GLObjectManager;
 import com.jme3.scene.Geometry;
 import com.jme3.scene.Geometry;
 import com.jme3.scene.Mesh;
 import com.jme3.scene.Mesh;
 import com.jme3.scene.Node;
 import com.jme3.scene.Node;
 import com.jme3.scene.Spatial.CullHint;
 import com.jme3.scene.Spatial.CullHint;
 import com.jme3.scene.shape.Sphere;
 import com.jme3.scene.shape.Sphere;
+import com.jme3.util.NativeObjectManager;
 import java.util.logging.Level;
 import java.util.logging.Level;
 import java.util.logging.Logger;
 import java.util.logging.Logger;
 
 
@@ -71,7 +71,7 @@ public class TestLeakingGL extends SimpleApplication {
         cam.lookAt(Vector3f.ZERO, Vector3f.UNIT_Y);
         cam.lookAt(Vector3f.ZERO, Vector3f.UNIT_Y);
 
 
         Logger.getLogger(Node.class.getName()).setLevel(Level.WARNING);
         Logger.getLogger(Node.class.getName()).setLevel(Level.WARNING);
-        Logger.getLogger(GLObjectManager.class.getName()).setLevel(Level.WARNING);
+        Logger.getLogger(NativeObjectManager.class.getName()).setLevel(Level.WARNING);
     }
     }
 
 
     @Override
     @Override