X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fcore%2Fvertexsetup.cpp;h=50f9c1837d1eff8e6bf5bfdf89d956b2cec82827;hb=6cee6c490ded0981c4da3f9f4ec74a41555e1a4e;hp=4fd589a9698bfe8a1616a4d097902a984e4f9c49;hpb=160e9eea29bd10034733d59507fa1bcca36be401;p=libs%2Fgl.git diff --git a/source/core/vertexsetup.cpp b/source/core/vertexsetup.cpp index 4fd589a9..50f9c183 100644 --- a/source/core/vertexsetup.cpp +++ b/source/core/vertexsetup.cpp @@ -8,14 +8,6 @@ using namespace std; namespace Msp { namespace GL { -VertexSetup::VertexSetup(): - dirty(0), - vertex_array(0), - inst_array(0), - index_buffer(0), - index_type(UNSIGNED_SHORT) -{ } - void VertexSetup::set_format(const VertexFormat &vfmt) { if(!verify_format(vfmt)) @@ -31,9 +23,9 @@ void VertexSetup::set_format(const VertexFormat &vfmt) void VertexSetup::set_format_instanced(const VertexFormat &vfmt, const VertexFormat &ifmt) { if(!verify_format(vfmt) || !verify_format(ifmt)) - throw invalid_argument("VertexSetup::set_format"); + throw invalid_argument("VertexSetup::set_format_instanced"); if(!vertex_format.empty()) - throw invalid_operation("VertexSetup::set_format"); + throw invalid_operation("VertexSetup::set_format_instanced"); require_format(vfmt, false); require_format(ifmt, true);