- don't use floatBuffer.array() in terrain for deprecated methods

git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@8742 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
This commit is contained in:
nor..67 2011-11-20 20:55:41 +00:00
parent 1e100399f1
commit ca69ef57b7
2 changed files with 5 additions and 2 deletions

View File

@ -58,7 +58,10 @@ public class GeoMap implements Savable {
@Deprecated
public GeoMap(FloatBuffer heightData, int width, int height, int maxval){
this(heightData.array(), width, height, maxval);
this(new float[heightData.limit()], width, height, maxval);
this.width = width;
this.height = height;
this.maxval = maxval;
}
public GeoMap(float[] heightData, int width, int height, int maxval){

View File

@ -72,7 +72,7 @@ public class LODGeomap extends GeoMap {
@Deprecated
public LODGeomap(int size, FloatBuffer heightMap) {
this(size, heightMap.array());
this(size, new float[heightMap.limit()]);
}
public LODGeomap(int size, float[] heightMap) {