tangram-es
tangram-es copied to clipboard
Builder.cpp must check if total triangle count is exceeding uint16 range
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.