diff options
author | Jason Sams <rjsams@android.com> | 2011-10-12 13:19:14 -0700 |
---|---|---|
committer | Jason Sams <rjsams@android.com> | 2011-10-12 13:19:14 -0700 |
commit | 38b78b1bf5dd564bf8e6c022eaba3ef6a21a3d03 (patch) | |
tree | 11f10cab9856cb130410d1ce585bd77233849495 | |
parent | 75c00531ecd6c10bcb12c06f19a0d51467ddb525 (diff) | |
download | frameworks_base-38b78b1bf5dd564bf8e6c022eaba3ef6a21a3d03.zip frameworks_base-38b78b1bf5dd564bf8e6c022eaba3ef6a21a3d03.tar.gz frameworks_base-38b78b1bf5dd564bf8e6c022eaba3ef6a21a3d03.tar.bz2 |
Fix example code.
Change-Id: Idd45125940be2e3c50f60c8ac1894838821f3123
-rw-r--r-- | tests/RenderScriptTests/FBOTest/src/com/android/fbotest/fbosync.rs | 4 | ||||
-rw-r--r-- | tests/RenderScriptTests/FBOTest/src/com/android/fbotest/fbotest.rs | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/tests/RenderScriptTests/FBOTest/src/com/android/fbotest/fbosync.rs b/tests/RenderScriptTests/FBOTest/src/com/android/fbotest/fbosync.rs index b77ccb4..42b1cf1 100644 --- a/tests/RenderScriptTests/FBOTest/src/com/android/fbotest/fbosync.rs +++ b/tests/RenderScriptTests/FBOTest/src/com/android/fbotest/fbosync.rs @@ -105,8 +105,8 @@ void updateMeshInfo() { rsgMeshComputeBoundingBox(info->mMesh, &minX, &minY, &minZ, &maxX, &maxY, &maxZ); - info->bBoxMin = (minX, minY, minZ); - info->bBoxMax = (maxX, maxY, maxZ); + info->bBoxMin = (float3){minX, minY, minZ}; + info->bBoxMax = (float3){maxX, maxY, maxZ}; gLookAt += (info->bBoxMin + info->bBoxMax)*0.5f; } gLookAt = gLookAt / (float)size; diff --git a/tests/RenderScriptTests/FBOTest/src/com/android/fbotest/fbotest.rs b/tests/RenderScriptTests/FBOTest/src/com/android/fbotest/fbotest.rs index d44fd2b..05ef3ac 100644 --- a/tests/RenderScriptTests/FBOTest/src/com/android/fbotest/fbotest.rs +++ b/tests/RenderScriptTests/FBOTest/src/com/android/fbotest/fbotest.rs @@ -104,8 +104,8 @@ void updateMeshInfo() { rsgMeshComputeBoundingBox(info->mMesh, &minX, &minY, &minZ, &maxX, &maxY, &maxZ); - info->bBoxMin = (minX, minY, minZ); - info->bBoxMax = (maxX, maxY, maxZ); + info->bBoxMin = (float3){minX, minY, minZ}; + info->bBoxMax = (float3){maxX, maxY, maxZ}; gLookAt += (info->bBoxMin + info->bBoxMax)*0.5f; } gLookAt = gLookAt / (float)size; |