Skip to content

Commit

Permalink
Merge pull request #1070 from Sumbera/master
Browse files Browse the repository at this point in the history
fix num_vertices in  ArFrame_transformCoordinates2d  call
  • Loading branch information
fredsa authored Jun 26, 2020
2 parents 54861e3 + 23185bc commit 582014c
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -438,7 +438,7 @@ glm::mat3 HelloArApplication::GetTextureTransformMatrix(
// along the two principal axes.
const float ndcBasis[6] = {0, 0, 1, 0, 0, 1};
ArFrame_transformCoordinates2d(
session, frame, AR_COORDINATES_2D_OPENGL_NORMALIZED_DEVICE_COORDINATES, 6,
session, frame, AR_COORDINATES_2D_OPENGL_NORMALIZED_DEVICE_COORDINATES, 3,
ndcBasis, AR_COORDINATES_2D_TEXTURE_NORMALIZED, frameTransform);

// Convert the transformed points into an affine transform and transpose it.
Expand Down

0 comments on commit 582014c

Please sign in to comment.