- removed the Bind function from FFlatVertexBuffer.

This is not flexible enough. There was already one place where this was not supposed to go through the render state.
The new interface allows more general use of the contained buffer objects.
This commit is contained in:
Christoph Oelckers 2018-10-30 19:28:47 +01:00
commit 48bc5550d7
10 changed files with 23 additions and 22 deletions

View file

@ -411,18 +411,6 @@ void FFlatVertexBuffer::Copy(int start, int count)
//
//==========================================================================
void FFlatVertexBuffer::Bind(FRenderState &state)
{
state.SetVertexBuffer(mVertexBuffer, 0, 0);
state.SetIndexBuffer(mIndexBuffer);
}
//==========================================================================
//
//
//
//==========================================================================
void FFlatVertexBuffer::CreateVBO()
{
vbo_shadowdata.Resize(mNumReserved);