|
|
@@ -32,17 +32,13 @@
|
|
|
|
|
|
package jme3test.app;
|
|
|
|
|
|
-import jme3test.model.shape.*;
|
|
|
import com.jme3.app.SimpleApplication;
|
|
|
import com.jme3.material.Material;
|
|
|
import com.jme3.math.Vector3f;
|
|
|
import com.jme3.scene.Geometry;
|
|
|
import com.jme3.scene.shape.Box;
|
|
|
import com.jme3.util.BufferUtils;
|
|
|
-import java.lang.reflect.InvocationTargetException;
|
|
|
import java.nio.ByteBuffer;
|
|
|
-import java.util.logging.Level;
|
|
|
-import java.util.logging.Logger;
|
|
|
|
|
|
public class TestReleaseDirectMemory extends SimpleApplication {
|
|
|
|
|
|
@@ -64,7 +60,7 @@ public class TestReleaseDirectMemory extends SimpleApplication {
|
|
|
@Override
|
|
|
public void simpleUpdate(float tpf) {
|
|
|
ByteBuffer buf = BufferUtils.createByteBuffer(500000);
|
|
|
- BufferUtils.destroyDirectByteBuffer(buf);
|
|
|
+ BufferUtils.destroyByteBuffer(buf);
|
|
|
}
|
|
|
|
|
|
}
|