From 4ef0572ceb027c5ab1203d2385dad29de55dbccf Mon Sep 17 00:00:00 2001 From: Gregory Hainaut Date: Fri, 6 Nov 2015 22:53:30 +0100 Subject: [PATCH] gsdx-ogl: disable copy constructor 'class GSVertexBufferStateOGL' does not have a copy constructor which is recommended since the class contains a pointer to allocated memory. --- plugins/GSdx/GSVertexArrayOGL.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/plugins/GSdx/GSVertexArrayOGL.h b/plugins/GSdx/GSVertexArrayOGL.h index e581f2d820..2b64770b9b 100644 --- a/plugins/GSdx/GSVertexArrayOGL.h +++ b/plugins/GSdx/GSVertexArrayOGL.h @@ -253,6 +253,9 @@ class GSVertexBufferStateOGL { GLuint m_va; GLenum m_topology; + // No copy constructor please + GSVertexBufferStateOGL(const GSVertexBufferStateOGL& ) = delete; + public: GSVertexBufferStateOGL(size_t stride, GSInputLayoutOGL* layout, uint32 layout_nbr) : m_vb(NULL), m_ib(NULL), m_topology(0) {