Fixed glBindBufferARB to extensions->glBindBuffer()
This commit is contained in:
parent
71eb715068
commit
092c094752
@ -928,7 +928,7 @@ void Geometry::drawImplementation(State& state) const
|
|||||||
|
|
||||||
//std::cout << "binding VertexBuffer "<<buffer<<std::endl;
|
//std::cout << "binding VertexBuffer "<<buffer<<std::endl;
|
||||||
|
|
||||||
glBindBufferARB(GL_ARRAY_BUFFER_ARB,buffer);
|
extensions->glBindBuffer(GL_ARRAY_BUFFER_ARB,buffer);
|
||||||
|
|
||||||
if( _vertexArray.valid() )
|
if( _vertexArray.valid() )
|
||||||
state.setVertexPointer(_vertexArray->getDataSize(),_vertexArray->getDataType(),0,(const GLvoid*)_vertexOffset);
|
state.setVertexPointer(_vertexArray->getDataSize(),_vertexArray->getDataType(),0,(const GLvoid*)_vertexOffset);
|
||||||
@ -1133,7 +1133,7 @@ void Geometry::drawImplementation(State& state) const
|
|||||||
|
|
||||||
if (_useVertexBufferObjects)
|
if (_useVertexBufferObjects)
|
||||||
{
|
{
|
||||||
glBindBufferARB(GL_ARRAY_BUFFER_ARB,0);
|
extensions->glBindBuffer(GL_ARRAY_BUFFER_ARB,0);
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user