]> git.tdb.fi Git - libs/gl.git/blobdiff - source/vertexformat.cpp
Exception fixes
[libs/gl.git] / source / vertexformat.cpp
index ed2b04b8dbd0784c2bf6bc67c7a10698000a8464..e3f8bf97a5c49e5fe245975d09308de0e57295c9 100644 (file)
@@ -114,7 +114,7 @@ VertexFormat operator,(const VertexFormat &f, unsigned i)
        VertexFormat r = f;
        unsigned char *c = r.data+r.data[0];
        if((*c<TEXCOORD1 && i>0) || (*c<ATTRIB1 && i>=8) || i>=53)
-               throw out_of_range("VertexFormat::operator,");
+               throw invalid_argument("VertexFormat::operator,");
        *c += i*4;
 
        return r;