GL3: Remove invalid calls

--HG--
branch : opengl3
hg/feature/opengl3
kaetemi 11 years ago
parent f347172bbe
commit 007d8877b8

@ -94,7 +94,7 @@ IVertexBufferHardGL *CVertexArrayRange::createVBHardGL(uint size, CVertexBuffer
} }
CVertexBufferHard *newVbHard= new CVertexBufferHard(_Driver, vb); CVertexBufferHard *newVbHard= new CVertexBufferHard(_Driver, vb);
newVbHard->initGL(vertexBufferID, this, _VBType); newVbHard->initGL(vertexBufferID, this, _VBType);
_Driver->_DriverGLStates.forceBindARBVertexBuffer(0); // _Driver->_DriverGLStates.forceBindARBVertexBuffer(0);
return newVbHard; return newVbHard;
} }
@ -169,7 +169,7 @@ CVertexBufferHard::~CVertexBufferHard()
{ {
if (_Driver->_DriverGLStates.getCurrBoundARBVertexBuffer() == _VertexObjectId) if (_Driver->_DriverGLStates.getCurrBoundARBVertexBuffer() == _VertexObjectId)
{ {
_Driver->_DriverGLStates.forceBindARBVertexBuffer(0); // _Driver->_DriverGLStates.forceBindARBVertexBuffer(0);
} }
} }
if (_VertexObjectId) if (_VertexObjectId)
@ -273,7 +273,7 @@ void *CVertexBufferHard::lock()
_VertexArrayRange->_MappedVBList.push_front(this); _VertexArrayRange->_MappedVBList.push_front(this);
_IteratorInMappedVBList = _VertexArrayRange->_MappedVBList.begin(); _IteratorInMappedVBList = _VertexArrayRange->_MappedVBList.begin();
#endif #endif
_Driver->_DriverGLStates.forceBindARBVertexBuffer(0); // _Driver->_DriverGLStates.forceBindARBVertexBuffer(0);
// Lock Profile? // Lock Profile?
if (_Driver->_VBHardProfiling) if (_Driver->_VBHardProfiling)
{ {
@ -319,7 +319,7 @@ void CVertexBufferHard::unlock()
#ifdef NL_DEBUG #ifdef NL_DEBUG
_VertexArrayRange->_MappedVBList.erase(_IteratorInMappedVBList); _VertexArrayRange->_MappedVBList.erase(_IteratorInMappedVBList);
#endif #endif
_Driver->_DriverGLStates.forceBindARBVertexBuffer(0); // _Driver->_DriverGLStates.forceBindARBVertexBuffer(0);
if (!unmapOk) if (!unmapOk)
{ {
invalidate(); invalidate();

Loading…
Cancel
Save