From 34335cc9b2e406cb799d14149ea0081dc610e48b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vladim=C3=ADr=20Vondru=C5=A1?= Date: Sat, 29 Apr 2017 00:47:14 +0200 Subject: [PATCH] Fix compiler warning on WebGL 2 build. --- src/Magnum/Mesh.cpp | 3 +++ 1 file changed, 3 insertions(+) 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));