From 721c4d812122afc6b508668d87ac86a1ff3d7fe3 Mon Sep 17 00:00:00 2001 From: Lioncash Date: Fri, 12 Jun 2020 16:41:45 -0400 Subject: [PATCH] CIndexBuffer: Make constructor explicit Prevents implicit constructions. --- src/Core/OpenGL/CIndexBuffer.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Core/OpenGL/CIndexBuffer.h b/src/Core/OpenGL/CIndexBuffer.h index 43d71e3a..acf02f80 100644 --- a/src/Core/OpenGL/CIndexBuffer.h +++ b/src/Core/OpenGL/CIndexBuffer.h @@ -14,7 +14,7 @@ class CIndexBuffer public: CIndexBuffer(); - CIndexBuffer(GLenum Type); + explicit CIndexBuffer(GLenum Type); ~CIndexBuffer(); void AddIndex(uint16 Index); void AddIndices(uint16 *pIndices, uint Count);