From 007d8877b84ebe575aee489b66383d79d55b746e Mon Sep 17 00:00:00 2001 From: kaetemi Date: Wed, 2 Apr 2014 14:23:56 +0200 Subject: [PATCH] GL3: Remove invalid calls --HG-- branch : opengl3 --- .../driver/opengl3/driver_opengl_vertex_buffer_hard.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/code/nel/src/3d/driver/opengl3/driver_opengl_vertex_buffer_hard.cpp b/code/nel/src/3d/driver/opengl3/driver_opengl_vertex_buffer_hard.cpp index 420ecfd16..734b99c2a 100644 --- a/code/nel/src/3d/driver/opengl3/driver_opengl_vertex_buffer_hard.cpp +++ b/code/nel/src/3d/driver/opengl3/driver_opengl_vertex_buffer_hard.cpp @@ -94,7 +94,7 @@ IVertexBufferHardGL *CVertexArrayRange::createVBHardGL(uint size, CVertexBuffer } CVertexBufferHard *newVbHard= new CVertexBufferHard(_Driver, vb); newVbHard->initGL(vertexBufferID, this, _VBType); - _Driver->_DriverGLStates.forceBindARBVertexBuffer(0); + // _Driver->_DriverGLStates.forceBindARBVertexBuffer(0); return newVbHard; } @@ -169,7 +169,7 @@ CVertexBufferHard::~CVertexBufferHard() { if (_Driver->_DriverGLStates.getCurrBoundARBVertexBuffer() == _VertexObjectId) { - _Driver->_DriverGLStates.forceBindARBVertexBuffer(0); + // _Driver->_DriverGLStates.forceBindARBVertexBuffer(0); } } if (_VertexObjectId) @@ -273,7 +273,7 @@ void *CVertexBufferHard::lock() _VertexArrayRange->_MappedVBList.push_front(this); _IteratorInMappedVBList = _VertexArrayRange->_MappedVBList.begin(); #endif - _Driver->_DriverGLStates.forceBindARBVertexBuffer(0); + // _Driver->_DriverGLStates.forceBindARBVertexBuffer(0); // Lock Profile? if (_Driver->_VBHardProfiling) { @@ -319,7 +319,7 @@ void CVertexBufferHard::unlock() #ifdef NL_DEBUG _VertexArrayRange->_MappedVBList.erase(_IteratorInMappedVBList); #endif - _Driver->_DriverGLStates.forceBindARBVertexBuffer(0); + // _Driver->_DriverGLStates.forceBindARBVertexBuffer(0); if (!unmapOk) { invalidate();