From a5e63705a3c77abcd3bcb9bd3d45e05c45bdb2df Mon Sep 17 00:00:00 2001 From: Syoyo Fujita Date: Mon, 17 Oct 2016 18:05:42 +0900 Subject: [PATCH] Remove GL_TRINANGLES restriction for `mode` in `primitive` parameter. --- tiny_gltf_loader.h | 8 -------- 1 file changed, 8 deletions(-) diff --git a/tiny_gltf_loader.h b/tiny_gltf_loader.h index c5ebb12..0223005 100644 --- a/tiny_gltf_loader.h +++ b/tiny_gltf_loader.h @@ -1697,14 +1697,6 @@ static bool ParsePrimitive(Primitive *primitive, std::string *err, ParseNumberProperty(&mode, err, o, "mode", false); int primMode = static_cast(mode); - if (primMode != TINYGLTF_MODE_TRIANGLES) { - if (err) { - (*err) += - "Currently TinyGLTFLoader doesn not support primitive mode other \n" - "than TRIANGLES.\n"; - } - return false; - } primitive->mode = primMode; primitive->indices = "";