X-Git-Url: http://git.tdb.fi/?p=libs%2Fgl.git;a=blobdiff_plain;f=source%2Fcore%2Fvertexarray.h;h=d80b2786db4d996f04b74d9514b3baaa1fecbf61;hp=290fa10c455f07b56f95c6ab0da3cfa9cc8f5fab;hb=38712d8ecc57d043a2419ffbaeeb57f7a6586f14;hpb=3bc34893905a2df622894aadcb6669f27f186772 diff --git a/source/core/vertexarray.h b/source/core/vertexarray.h index 290fa10c..d80b2786 100644 --- a/source/core/vertexarray.h +++ b/source/core/vertexarray.h @@ -32,12 +32,12 @@ public: private: VertexFormat format; std::vector data; - unsigned stride; + unsigned stride = 0; VertexArray(const VertexArray &); VertexArray &operator=(const VertexArray &); public: - VertexArray(); + VertexArray() = default; /// Construct a VertexArray and set its format. VertexArray(const VertexFormat &);