]> git.tdb.fi Git - libs/gl.git/blobdiff - source/core/vertexsetup.cpp
Wrap Limits into a DeviceInfo struct
[libs/gl.git] / source / core / vertexsetup.cpp
index cda38b458fbb670bca4426d2c7060e4d7786d0f2..55424d6caf41eb9979f2de294547cf7f13fd210a 100644 (file)
@@ -1,4 +1,3 @@
-#include <msp/core/raii.h>
 #include <msp/gl/extensions/arb_direct_state_access.h>
 #include <msp/gl/extensions/arb_instanced_arrays.h>
 #include <msp/gl/extensions/arb_vertex_array_object.h>
@@ -10,8 +9,6 @@
 #include "buffer.h"
 #include "deviceinfo.h"
 #include "error.h"
-#include "gl.h"
-#include "misc.h"
 #include "vertexarray.h"
 #include "vertexsetup.h"
 
@@ -105,7 +102,7 @@ bool VertexSetup::verify_format(const VertexFormat &fmt)
        if(fmt.empty())
                return false;
 
-       unsigned max_attribs = Limits::get_global().max_vertex_attributes;
+       unsigned max_attribs = DeviceInfo::get_global().limits.max_vertex_attributes;
 
        for(VertexAttribute a: fmt)
                if(get_attribute_semantic(a)>=max_attribs)