From: Mikko Rasa Date: Sat, 25 Aug 2012 19:28:54 +0000 (+0300) Subject: Initialize buf_range as null X-Git-Url: http://git.tdb.fi/?a=commitdiff_plain;h=73fd6d13b8e68b2aeec8e5c85227cf361fdb467e;p=libs%2Fgl.git Initialize buf_range as null --- diff --git a/source/uniformblock.cpp b/source/uniformblock.cpp index 2b9a135c..350f57ab 100644 --- a/source/uniformblock.cpp +++ b/source/uniformblock.cpp @@ -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)