]> git.tdb.fi Git - libs/gl.git/commitdiff
Initialize buf_range as null
authorMikko Rasa <tdb@tdb.fi>
Sat, 25 Aug 2012 19:28:54 +0000 (22:28 +0300)
committerMikko Rasa <tdb@tdb.fi>
Sat, 25 Aug 2012 19:28:54 +0000 (22:28 +0300)
source/uniformblock.cpp

index 2b9a135c0d8b61d9dd545c4aefeccd603f39fbf7..350f57ab6d0f48acaad3bca42f961ac8bf634aee 100644 (file)
@@ -12,12 +12,14 @@ using namespace std;
 namespace Msp {
 namespace GL {
 
-UniformBlock::UniformBlock()
+UniformBlock::UniformBlock():
+       buf_range(0)
 { }
 
 UniformBlock::UniformBlock(unsigned s):
        size(s),
-       data(size)
+       data(size),
+       buf_range(0)
 { }
 
 void UniformBlock::attach(int index, const Uniform &uni)