diff --git a/src/Magnum/Mesh.cpp b/src/Magnum/Mesh.cpp index 6efc92069..ebc11bf84 100644 --- a/src/Magnum/Mesh.cpp +++ b/src/Magnum/Mesh.cpp @@ -303,6 +303,9 @@ void Mesh::drawInternal(Int count, Int baseVertex, Int instanceCount, GLintptr i /* Indexed mesh */ } else + #elif !defined(MAGNUM_TARGET_GLES2) + static_cast(indexStart); + static_cast(indexEnd); #endif { glDrawElements(GLenum(_primitive), count, GLenum(_indexType), reinterpret_cast(indexOffset));