diff --git a/src/Utils/GLSLShader.cpp b/src/Utils/GLSLShader.cpp index c1a3029738fdef6f4f3a5b4658cb60eb094b847c..6b857c68d4b1524ade87732e2275e37f6c73d4d4 100644 --- a/src/Utils/GLSLShader.cpp +++ b/src/Utils/GLSLShader.cpp @@ -1083,7 +1083,7 @@ void GLSLShader::enableVertexAttribs(unsigned int stride, unsigned int begin) co { glBindBuffer(GL_ARRAY_BUFFER, it->vbo_ptr->id()); glEnableVertexAttribArray(it->va_id); - glVertexAttribPointer(it->va_id, it->vbo_ptr->dataSize(), GL_FLOAT, false, stride, (const GLvoid*)begin); + glVertexAttribPointer(it->va_id, it->vbo_ptr->dataSize(), GL_FLOAT, false, stride, (const GLvoid*)((unsigned long)(begin))); } // this->unbind(); }