tangram-es icon indicating copy to clipboard operation
tangram-es copied to clipboard

Builder.cpp must check if total triangle count is exceeding uint16 range

Open mkandulavm opened this issue 5 years ago • 0 comments

TO REPRODUCE THE ISSUE, FOLLOW THESE STEPS: Load 3D objects with triangles more than uint16 range

RESULT: Object is rendered with triangles with invalid polygons

EXPECTED RESULT: Object should be rendered correctly.

ENVIRONMENT:

Linux

OTHER:

Its better to check in builder.cpp if _ctx.numVerts exceeds uint16 range [I think]

Please suggest better solution or if this error is valid of checking.

mkandulavm avatar May 03 '19 11:05 mkandulavm