-#include "deviceinfo.h"
+#include "device.h"
#include "error.h"
#include "vertexarray.h"
#include "vertexsetup.h"
if(fmt.empty())
return false;
- static unsigned max_attribs = DeviceInfo::get_global().limits.max_vertex_attributes;
- return all_of(fmt.begin(), fmt.end(), [](VertexAttribute a){ return get_attribute_semantic(a)<max_attribs; });
+ static unsigned max_attribs = Device::get_current().get_info().limits.max_vertex_attributes;
+ return all_of(fmt.begin(), fmt.end(), [](VertexAttribute a){ return is_padding(a) || get_attribute_semantic(a)<max_attribs; });
}
void VertexSetup::update() const