]> git.tdb.fi Git - libs/gl.git/blobdiff - source/core/uniformblock.cpp
Store implementation limits in a central struct
[libs/gl.git] / source / core / uniformblock.cpp
index f114ea584d04b7ff35ef550348febd4f9c38585d..59871cdde8249b3b90e0dd03a89db66963e2efd6 100644 (file)
@@ -3,6 +3,7 @@
 #include <msp/gl/extensions/arb_uniform_buffer_object.h>
 #include "buffer.h"
 #include "color.h"
+#include "deviceinfo.h"
 #include "error.h"
 #include "matrix.h"
 #include "uniform.h"
@@ -67,7 +68,7 @@ BufferBackedUniformBlock::~BufferBackedUniformBlock()
 
 unsigned BufferBackedUniformBlock::get_alignment() const
 {
-       return BufferRange::get_uniform_buffer_alignment();
+       return Limits::get_global().uniform_buffer_alignment;
 }
 
 void BufferBackedUniformBlock::location_changed(Buffer *buf, unsigned off, unsigned) const