]> git.tdb.fi Git - libs/gl.git/blobdiff - source/core/deviceinfo.cpp
Remove obsolete includes
[libs/gl.git] / source / core / deviceinfo.cpp
index 93297a790974b23479c165b9b576d6fdf6220576..8400ffdf0d344c448d3ed69eb132dc5f17c2f97e 100644 (file)
@@ -1,24 +1,12 @@
 #include "deviceinfo.h"
-#include "gl.h"
 
 namespace Msp {
 namespace GL {
 
-Limits::Limits()
+const DeviceInfo &DeviceInfo::get_global()
 {
-       glGetIntegerv(GL_MAX_VERTEX_ATTRIBS, reinterpret_cast<int *>(&max_vertex_attributes));
-       glGetIntegerv(GL_MAX_COMBINED_TEXTURE_IMAGE_UNITS, reinterpret_cast<int *>(&max_texture_bindings));
-       glGetIntegerv(GL_MAX_UNIFORM_BUFFER_BINDINGS, reinterpret_cast<int *>(&max_uniform_bindings));
-       glGetIntegerv(GL_MAX_CLIP_PLANES, reinterpret_cast<int *>(&max_clip_planes));
-       glGetIntegerv(GL_MAX_SAMPLES, reinterpret_cast<int *>(&max_samples));
-       glGetIntegerv(GL_UNIFORM_BUFFER_OFFSET_ALIGNMENT, reinterpret_cast<int *>(&uniform_buffer_alignment));
-       glGetIntegerv(GL_MAX_COLOR_ATTACHMENTS, reinterpret_cast<int *>(&max_color_attachments));
-}
-
-const Limits &Limits::get_global()
-{
-       static Limits limits;
-       return limits;
+       static DeviceInfo info;
+       return info;
 }
 
 } // namespace GL