X-Git-Url: http://git.tdb.fi/?p=libs%2Fgl.git;a=blobdiff_plain;f=source%2Fcore%2Fprimitivetype.cpp;h=ed4b154561aa0b276d5010d5d7508a27dfe82002;hp=7698e2d65e0fcf916cfb70d4ac228e60830a1f97;hb=9eb9f592d37e9a1e05c2ff70887a1c5f26b98864;hpb=29fe33d3dde1df0e11c741b0c02af2f33b685571 diff --git a/source/core/primitivetype.cpp b/source/core/primitivetype.cpp index 7698e2d6..ed4b1545 100644 --- a/source/core/primitivetype.cpp +++ b/source/core/primitivetype.cpp @@ -20,6 +20,8 @@ void operator>>(const LexicalConverter &conv, PrimitiveType &pt) pt = TRIANGLE_STRIP; else if(conv.get()=="TRIANGLE_FAN") pt = TRIANGLE_FAN; + else if(conv.get()=="PATCHES") + pt = PATCHES; else throw lexical_error(format("conversion of '%s' to PrimitiveType", conv.get())); }