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.
This commit is contained in:
Gregory Hainaut 2015-11-06 22:53:30 +01:00
parent 345a538c84
commit 4ef0572ceb
1 changed files with 3 additions and 0 deletions

View File

@ -253,6 +253,9 @@ class GSVertexBufferStateOGL {
GLuint m_va; GLuint m_va;
GLenum m_topology; GLenum m_topology;
// No copy constructor please
GSVertexBufferStateOGL(const GSVertexBufferStateOGL& ) = delete;
public: public:
GSVertexBufferStateOGL(size_t stride, GSInputLayoutOGL* layout, uint32 layout_nbr) : m_vb(NULL), m_ib(NULL), m_topology(0) GSVertexBufferStateOGL(size_t stride, GSInputLayoutOGL* layout, uint32 layout_nbr) : m_vb(NULL), m_ib(NULL), m_topology(0)
{ {