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 mMeshHeight;
|
||||
@SuppressWarnings({"FieldCanBeLocal"})
|
||||
private RenderScript.TriangleMesh mMesh;
|
||||
|
||||
private Allocation mRippleMap;
|
||||
private Allocation mRefractionMap;
|
||||
|
||||
@@ -211,8 +214,8 @@ class FallRS {
|
||||
}
|
||||
}
|
||||
|
||||
RenderScript.TriangleMesh mesh = rs.triangleMeshCreate();
|
||||
mesh.setName("WaterMesh");
|
||||
mMesh = rs.triangleMeshCreate();
|
||||
mMesh.setName("WaterMesh");
|
||||
|
||||
mMeshWidth = wResolution + 1;
|
||||
mMeshHeight = hResolution + 1;
|
||||
|
||||
Reference in New Issue
Block a user