diff --git a/src/Mesh.h b/src/Mesh.h index ed7a78b9f..068da10e6 100644 --- a/src/Mesh.h +++ b/src/Mesh.h @@ -683,7 +683,7 @@ class MAGNUM_EXPORT Mesh: public AbstractObject { GLint(attribute.components()), GLenum(attribute.dataType()), bool(attribute.dataOptions() & AbstractShaderProgram::Attribute::DataOption::Normalized), - offset+i*attribute.vectorSize(), + GLintptr(offset+i*attribute.vectorSize()), stride }); } @@ -708,7 +708,7 @@ class MAGNUM_EXPORT Mesh: public AbstractObject { location+i, GLint(attribute.components()), GLenum(attribute.dataType()), - offset+i*attribute.vectorSize(), + GLintptr(offset+i*attribute.vectorSize()), stride }); }