X-Git-Url: http://git.tdb.fi/?p=libs%2Fgl.git;a=blobdiff_plain;f=source%2Fcore%2Fprimitivetype.cpp;h=7698e2d65e0fcf916cfb70d4ac228e60830a1f97;hp=e52a87dc9c3269da2abd4c149cd7303a5d846008;hb=HEAD;hpb=ce361cb30b297e2ad020f215487a698283dfdb85 diff --git a/source/core/primitivetype.cpp b/source/core/primitivetype.cpp index e52a87dc..ed4b1545 100644 --- a/source/core/primitivetype.cpp +++ b/source/core/primitivetype.cpp @@ -12,8 +12,6 @@ void operator>>(const LexicalConverter &conv, PrimitiveType &pt) pt = POINTS; else if(conv.get()=="LINES") pt = LINES; - else if(conv.get()=="LINE_LOOP") - pt = LINE_LOOP; else if(conv.get()=="LINE_STRIP") pt = LINE_STRIP; else if(conv.get()=="TRIANGLES") @@ -22,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())); }