mirror of https://github.com/PCSX2/pcsx2.git
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:
parent
345a538c84
commit
4ef0572ceb
|
@ -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)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue