diff --git a/code/nel/src/3d/driver/OpenGL3/driver_opengl_extension.cpp b/code/nel/src/3d/driver/OpenGL3/driver_opengl_extension.cpp index 5bcb63b0b..259e1593e 100644 --- a/code/nel/src/3d/driver/OpenGL3/driver_opengl_extension.cpp +++ b/code/nel/src/3d/driver/OpenGL3/driver_opengl_extension.cpp @@ -1320,6 +1320,8 @@ void registerGlExtensions(CGlExtensions &ext) ext.ATITextureEnvCombine3= setupATITextureEnvCombine3(glext); // Check ATIXTextureEnvRoute ext.ATIXTextureEnvRoute= setupATIXTextureEnvRoute(glext); + + setupARBVertexBufferObject(glext); } 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 fc11e8131..85cd2e500 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 @@ -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(); diff --git a/code/nel/src/3d/driver/OpenGL3/driver_opengl_vertex_buffer_hard.h b/code/nel/src/3d/driver/OpenGL3/driver_opengl_vertex_buffer_hard.h index 82c3098ec..edaf2687b 100644 --- a/code/nel/src/3d/driver/OpenGL3/driver_opengl_vertex_buffer_hard.h +++ b/code/nel/src/3d/driver/OpenGL3/driver_opengl_vertex_buffer_hard.h @@ -138,7 +138,6 @@ public: // ************************* private: CVertexBuffer::TPreferredMemory _VBType; - uint32 _SizeAllocated; // for use by CVertexBufferHardARB public: std::list _LostVBList;