diff --git a/src/Core/OpenGL/CIndexBuffer.cpp b/src/Core/OpenGL/CIndexBuffer.cpp index f9a2cb5e..e3e1749f 100644 --- a/src/Core/OpenGL/CIndexBuffer.cpp +++ b/src/Core/OpenGL/CIndexBuffer.cpp @@ -1,13 +1,9 @@ #include "CIndexBuffer.h" -CIndexBuffer::CIndexBuffer() - : mBuffered(false) -{ -} +CIndexBuffer::CIndexBuffer() = default; CIndexBuffer::CIndexBuffer(GLenum Type) : mPrimitiveType(Type) - , mBuffered(false) { } diff --git a/src/Core/OpenGL/CIndexBuffer.h b/src/Core/OpenGL/CIndexBuffer.h index acf02f80..ff439ac5 100644 --- a/src/Core/OpenGL/CIndexBuffer.h +++ b/src/Core/OpenGL/CIndexBuffer.h @@ -7,10 +7,10 @@ class CIndexBuffer { - GLuint mIndexBuffer; + GLuint mIndexBuffer = 0; std::vector mIndices; - GLenum mPrimitiveType; - bool mBuffered; + GLenum mPrimitiveType{}; + bool mBuffered = false; public: CIndexBuffer();