X-Git-Url: http://git.tdb.fi/?p=libs%2Fgl.git;a=blobdiff_plain;f=source%2Frender%2Finstancearray.h;h=0965499fe66f98de6268619a189f80d253d91800;hp=8f5c73225519a374623c818b6298cdc55a308471;hb=8544116298d7a1be176f52be48c9952529f5c446;hpb=69f8cd98ee3b78f2e4ee509d30e5e828456ef702 diff --git a/source/render/instancearray.h b/source/render/instancearray.h index 8f5c7322..0965499f 100644 --- a/source/render/instancearray.h +++ b/source/render/instancearray.h @@ -40,10 +40,10 @@ private: const Object &object; std::vector instances; VertexArray instance_data; - Buffer *instance_buffer; + Buffer *instance_buffer = 0; VertexSetup vtx_setup; - int matrix_location; - unsigned matrix_offset; + int matrix_location = -1; + unsigned matrix_offset = 0; public: InstanceArray(const Object &);