summaryrefslogtreecommitdiffstats
path: root/tests/RenderScriptTests/ModelViewer
diff options
context:
space:
mode:
authorJean-Luc Brouillet <jeanluc@google.com>2015-05-19 14:59:42 -0700
committerJean-Luc Brouillet <jeanluc@google.com>2015-05-20 13:40:06 -0700
commitc19cdfa14dd5c64f3c185a7b07ac9ca2ecc2f0e7 (patch)
tree7b41adf189a0858b41c156dfa5b2553a067d4d99 /tests/RenderScriptTests/ModelViewer
parentb300d31bf1cb138f0a7c4c484459cc6a2ce2f69c (diff)
downloadframeworks_base-c19cdfa14dd5c64f3c185a7b07ac9ca2ecc2f0e7.zip
frameworks_base-c19cdfa14dd5c64f3c185a7b07ac9ca2ecc2f0e7.tar.gz
frameworks_base-c19cdfa14dd5c64f3c185a7b07ac9ca2ecc2f0e7.tar.bz2
Clean RenderScript warnings
Change-Id: Ia7a98c1c977c839c74ae8081e70b5deb4b60c25d
Diffstat (limited to 'tests/RenderScriptTests/ModelViewer')
-rw-r--r--tests/RenderScriptTests/ModelViewer/src/com/android/modelviewer/simplemodel.rs4
1 files changed, 1 insertions, 3 deletions
diff --git a/tests/RenderScriptTests/ModelViewer/src/com/android/modelviewer/simplemodel.rs b/tests/RenderScriptTests/ModelViewer/src/com/android/modelviewer/simplemodel.rs
index de2a0a7..d3dd5b9 100644
--- a/tests/RenderScriptTests/ModelViewer/src/com/android/modelviewer/simplemodel.rs
+++ b/tests/RenderScriptTests/ModelViewer/src/com/android/modelviewer/simplemodel.rs
@@ -123,7 +123,6 @@ static void renderAllMeshes() {
rs_allocation allMeshes = rsGetAllocation(gMeshes);
int size = rsAllocationGetDimX(allMeshes);
gLookAt = 0.0f;
- float minX, minY, minZ, maxX, maxY, maxZ;
for (int i = 0; i < size; i++) {
MeshInfo_t *info = (MeshInfo_t*)rsGetElementAt(allMeshes, i);
rsgDrawMesh(info->mMesh);
@@ -131,7 +130,6 @@ static void renderAllMeshes() {
}
void drawDescription() {
- uint width = rsgGetWidth();
uint height = rsgGetHeight();
int left = 0, right = 0, top = 0, bottom = 0;
@@ -163,7 +161,7 @@ int root(void) {
rsMatrixMultiply(&matrix, &gPostureMatrix);
rsMatrixRotate(&matrix, gRotateX, 1.0f, 0.0f, 0.0f);
rsMatrixRotate(&matrix, gRotateY, 0.0f, 1.0f, 0.0f);
-
+
rsgProgramVertexLoadModelMatrix(&matrix);
renderAllMeshes();