]> git.tdb.fi Git - libs/gl.git/blobdiff - source/core/primitivetype.cpp
Add tessellation shader support to the engine
[libs/gl.git] / source / core / primitivetype.cpp
index 7698e2d65e0fcf916cfb70d4ac228e60830a1f97..ed4b154561aa0b276d5010d5d7508a27dfe82002 100644 (file)
@@ -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()));
 }