Skip to content

Commit 38b78b1

Browse files
author
Jason Sams
committed
Fix example code.
Change-Id: Idd45125940be2e3c50f60c8ac1894838821f3123
1 parent 75c0053 commit 38b78b1

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

tests/RenderScriptTests/FBOTest/src/com/android/fbotest/fbosync.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -105,8 +105,8 @@ void updateMeshInfo() {
105105
rsgMeshComputeBoundingBox(info->mMesh,
106106
&minX, &minY, &minZ,
107107
&maxX, &maxY, &maxZ);
108-
info->bBoxMin = (minX, minY, minZ);
109-
info->bBoxMax = (maxX, maxY, maxZ);
108+
info->bBoxMin = (float3){minX, minY, minZ};
109+
info->bBoxMax = (float3){maxX, maxY, maxZ};
110110
gLookAt += (info->bBoxMin + info->bBoxMax)*0.5f;
111111
}
112112
gLookAt = gLookAt / (float)size;

tests/RenderScriptTests/FBOTest/src/com/android/fbotest/fbotest.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -104,8 +104,8 @@ void updateMeshInfo() {
104104
rsgMeshComputeBoundingBox(info->mMesh,
105105
&minX, &minY, &minZ,
106106
&maxX, &maxY, &maxZ);
107-
info->bBoxMin = (minX, minY, minZ);
108-
info->bBoxMax = (maxX, maxY, maxZ);
107+
info->bBoxMin = (float3){minX, minY, minZ};
108+
info->bBoxMax = (float3){maxX, maxY, maxZ};
109109
gLookAt += (info->bBoxMin + info->bBoxMax)*0.5f;
110110
}
111111
gLookAt = gLookAt / (float)size;

0 commit comments

Comments
 (0)