]> git.tdb.fi Git - libs/gl.git/blobdiff - source/core/vertexsetup.cpp
Check the flat qualifier from the correct member
[libs/gl.git] / source / core / vertexsetup.cpp
index 61bf032c0fcaecae0ffac46fef15c95f86e95952..2994916e81e0503c29110d55882f60cccf258ea1 100644 (file)
@@ -73,7 +73,7 @@ bool VertexSetup::verify_format(const VertexFormat &fmt)
                return false;
 
        static unsigned max_attribs = Device::get_current().get_info().limits.max_vertex_attributes;
-       return all_of(fmt.begin(), fmt.end(), [](VertexAttribute a){ return get_attribute_semantic(a)<max_attribs; });
+       return all_of(fmt.begin(), fmt.end(), [](VertexAttribute a){ return is_padding(a) || get_attribute_semantic(a)<max_attribs; });
 }
 
 void VertexSetup::update() const