It's a good idea to actually use the VBO if we spent this time cleaning up the implementations :D

--HG--
branch : gsoc2013-dfighter
hg/feature/gsoc2013-dfighter
dfighter1985 12 years ago
parent 44188b58b7
commit ee2c14670e

@ -1320,6 +1320,8 @@ void registerGlExtensions(CGlExtensions &ext)
ext.ATITextureEnvCombine3= setupATITextureEnvCombine3(glext);
// Check ATIXTextureEnvRoute
ext.ATIXTextureEnvRoute= setupATIXTextureEnvRoute(glext);
setupARBVertexBufferObject(glext);
}

@ -86,8 +86,7 @@ IVertexBufferHardGL::~IVertexBufferHardGL()
// ***************************************************************************
CVertexArrayRangeARB::CVertexArrayRangeARB(CDriverGL3 *drv) : IVertexArrayRange(drv),
_VBType(CVertexBuffer::AGPPreferred),
_SizeAllocated(0)
_VBType(CVertexBuffer::AGPPreferred)
{
H_AUTO_OGL(CVertexArrayRangeARB_CVertexArrayRangeARB)
}
@ -96,7 +95,7 @@ CVertexArrayRangeARB::CVertexArrayRangeARB(CDriverGL3 *drv) : IVertexArrayRange(
IVertexBufferHardGL *CVertexArrayRangeARB::createVBHardGL(uint size, CVertexBuffer *vb)
{
H_AUTO_OGL(CVertexArrayRangeARB_createVBHardGL)
if (!_SizeAllocated) return NULL;
// create a ARB VBHard
GLuint vertexBufferID;
glGetError();

@ -138,7 +138,6 @@ public:
// *************************
private:
CVertexBuffer::TPreferredMemory _VBType;
uint32 _SizeAllocated;
// for use by CVertexBufferHardARB
public:
std::list<CVertexBufferHardARB *> _LostVBList;

Loading…
Cancel
Save