X-Git-Url: http://git.tdb.fi/?p=libs%2Fgl.git;a=blobdiff_plain;f=source%2Fcore%2Fprimitivetype.cpp;h=7698e2d65e0fcf916cfb70d4ac228e60830a1f97;hp=ca03a67e599ea0dc9e6b16cea2a1dc274f4bb080;hb=HEAD;hpb=160e9eea29bd10034733d59507fa1bcca36be401 diff --git a/source/core/primitivetype.cpp b/source/core/primitivetype.cpp index ca03a67e..ed4b1545 100644 --- a/source/core/primitivetype.cpp +++ b/source/core/primitivetype.cpp @@ -1,5 +1,4 @@ #include -#include "gl.h" #include "primitivetype.h" using namespace std; @@ -13,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") @@ -23,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())); }