diff --git a/source/Irrlicht/COpenGLDriver.cpp b/source/Irrlicht/COpenGLDriver.cpp index bf5d22fd..20ffaf05 100644 --- a/source/Irrlicht/COpenGLDriver.cpp +++ b/source/Irrlicht/COpenGLDriver.cpp @@ -725,7 +725,7 @@ IRenderTarget* COpenGLDriver::addRenderTarget() // small helper function to create vertex buffer object address offsets -static inline const GLvoid * buffer_offset(const long offset) +static inline const GLvoid * buffer_offset(const size_t offset) { return (const GLvoid *)offset; }