]> git.tdb.fi Git - libs/gl.git/blobdiff - source/core/vertexformat.cpp
Add support for padding in vertex formats
[libs/gl.git] / source / core / vertexformat.cpp
index ff043f7d0466bef73b08e216836617ef8fe9200f..3db7542f4da68ab240ed17d7773299908dbcc7d9 100644 (file)
@@ -188,7 +188,8 @@ void operator>>(const LexicalConverter &conv, VertexAttribute &a)
                        convert_attribute(str, "GROUP", 1, 4, a, GROUP1) ||
                        convert_attribute(str, "WEIGHT", 1, 4, a, WEIGHT1) ||
                        convert_attribute(str, "TEXCOORD", 1, 4, a, TEXCOORD1) ||
-                       convert_attribute(str, "GENERIC", 1, 4, a, GENERIC1))
+                       convert_attribute(str, "GENERIC", 1, 4, a, GENERIC1) ||
+                       convert_attribute(str, "PADDING", 1, 4, a, PADDING1))
                        return;
        }
        catch(...)