X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Funiform.h;h=780bfe747ca3b2e6232a0791e11ca1b7e64762be;hb=f9d27a44f11dcb2980ea7c65d410e9002098487f;hp=156fe67623ec27bb4afd3334fac24dcc1bc77372;hpb=8f7d5b6460ef68e7316c7f556b7152d9c9f7bfe2;p=libs%2Fgl.git 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); }