Skip to content

Commit 99ea2f6

Browse files
Jason SamsAndroid (Google) Code Review
authored andcommitted
Merge "Fix example code."
2 parents 3c07f7f + 38b78b1 commit 99ea2f6

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)