diff --git a/doc/changelog.dox b/doc/changelog.dox index 678387861..11689011a 100644 --- a/doc/changelog.dox +++ b/doc/changelog.dox @@ -598,6 +598,8 @@ See also: renamed from `EXT_draw_buffers_indexed` and `EXT_clip_cull_distance` in March 2020 and January 2023. The old names are still recognized and present in @ref GL::Extensions for compatibility with older browsers. +- Re-enabled @fn_gl{DrawRangeElements} for WebGL 2, this time hopefully for + the last time (see [mosra/magnum#97](https://github.com/mosra/magnum/issues/97)) @subsubsection changelog-latest-changes-math Math library diff --git a/src/Magnum/GL/Mesh.cpp b/src/Magnum/GL/Mesh.cpp index ef21abaad..0d0ad32f2 100644 --- a/src/Magnum/GL/Mesh.cpp +++ b/src/Magnum/GL/Mesh.cpp @@ -854,10 +854,7 @@ void Mesh::drawInternal(Int count, Int baseVertex, Int instanceCount, GLintptr i /* Indexed mesh */ } else { - /** @todo re-enable once https://github.com/kripken/emscripten/pull/7112 - is merged and Emscripten versions with this change are - widespread enough */ - #if !defined(MAGNUM_TARGET_GLES2) && !defined(MAGNUM_TARGET_WEBGL) + #ifndef MAGNUM_TARGET_GLES2 /* Indexed mesh with specified range */ if(indexEnd) { glDrawRangeElements(GLenum(_primitive), indexStart, indexEnd, count, GLenum(_indexType), reinterpret_cast(indexByteOffset));