X-Git-Url: http://git.tdb.fi/?p=libs%2Fgl.git;a=blobdiff_plain;f=source%2Funiform.h;h=780bfe747ca3b2e6232a0791e11ca1b7e64762be;hp=156fe67623ec27bb4afd3334fac24dcc1bc77372;hb=cd1f63c76463bb5ba78f6c3bb13aa40a97f1e004;hpb=44d6110bb0f1bf92c6d749c2fb5345141d681c03 diff --git a/source/uniform.h b/source/uniform.h index 156fe676..780bfe74 100644 --- a/source/uniform.h +++ b/source/uniform.h @@ -144,6 +144,11 @@ public: std::copy(vp, vp+elemsize*size, values); } + ~UniformArray() + { + delete[] values; + } + virtual void apply(int index) const { T::apply(index, size, values); }