am 6f89172b: Merge change 22352 into eclair
Merge commit '6f89172b6e149c623fe582e4baa658299a3fc72c' into eclair-plus-aosp * commit '6f89172b6e149c623fe582e4baa658299a3fc72c': Fix FallRS by keeping a reference to the mesh.
This commit is contained in:
@@ -103,6 +103,9 @@ class FallRS {
|
|||||||
private int mMeshWidth;
|
private int mMeshWidth;
|
||||||
|
|
||||||
private int mMeshHeight;
|
private int mMeshHeight;
|
||||||
|
@SuppressWarnings({"FieldCanBeLocal"})
|
||||||
|
private RenderScript.TriangleMesh mMesh;
|
||||||
|
|
||||||
private Allocation mRippleMap;
|
private Allocation mRippleMap;
|
||||||
private Allocation mRefractionMap;
|
private Allocation mRefractionMap;
|
||||||
|
|
||||||
@@ -211,8 +214,8 @@ class FallRS {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
RenderScript.TriangleMesh mesh = rs.triangleMeshCreate();
|
mMesh = rs.triangleMeshCreate();
|
||||||
mesh.setName("WaterMesh");
|
mMesh.setName("WaterMesh");
|
||||||
|
|
||||||
mMeshWidth = wResolution + 1;
|
mMeshWidth = wResolution + 1;
|
||||||
mMeshHeight = hResolution + 1;
|
mMeshHeight = hResolution + 1;
|
||||||
|
|||||||
Reference in New Issue
Block a user