diff --git a/code/nel/src/3d/driver/OpenGL3/driver_opengl.h b/code/nel/src/3d/driver/OpenGL3/driver_opengl.h index 234e04442..1aa68d6a1 100644 --- a/code/nel/src/3d/driver/OpenGL3/driver_opengl.h +++ b/code/nel/src/3d/driver/OpenGL3/driver_opengl.h @@ -437,7 +437,6 @@ public: virtual bool renderLines(CMaterial& mat, uint32 firstIndex, uint32 nlines); virtual bool renderTriangles(CMaterial& Mat, uint32 firstIndex, uint32 ntris); - bool renderTriangles2(CMaterial& Mat, uint32 firstIndex, uint32 ntris ); virtual bool renderSimpleTriangles(uint32 firstTri, uint32 ntris); virtual bool renderRawPoints(CMaterial& Mat, uint32 startIndex, uint32 numPoints); virtual bool renderRawLines(CMaterial& Mat, uint32 startIndex, uint32 numLines); diff --git a/code/nel/src/3d/driver/OpenGL3/driver_opengl_program.cpp b/code/nel/src/3d/driver/OpenGL3/driver_opengl_program.cpp index 1c44efff0..51e75a975 100644 --- a/code/nel/src/3d/driver/OpenGL3/driver_opengl_program.cpp +++ b/code/nel/src/3d/driver/OpenGL3/driver_opengl_program.cpp @@ -114,32 +114,6 @@ namespace NL3D return true; } - bool CDriverGL3::renderTriangles2( CMaterial &mat, uint32 startIndex, uint32 numTris ) - { - if( !setupMaterial( mat ) ) - return false; - - if( !setupProgram( mat ) ) - return false; - - if( numTris ) - { - if (_LastIB._Format == CIndexBuffer::Indices16) - { - glDrawElements(GL_TRIANGLES,3*numTris,GL_UNSIGNED_SHORT, ((uint16 *) _LastIB._Values)+startIndex); - } - else - { - nlassert(_LastIB._Format == CIndexBuffer::Indices32); - glDrawElements(GL_TRIANGLES,3*numTris,GL_UNSIGNED_INT, ((uint32 *) _LastIB._Values)+startIndex); - } - } - - releaseProgram(); - - return true; - } - static IProgram *vp; static IProgram *pp; static IProgramObject *p;