Browse Source

Fix compiler warning on WebGL 2 build.

pull/203/merge
Vladimír Vondruš 9 years ago
parent
commit
34335cc9b2
  1. 3
      src/Magnum/Mesh.cpp

3
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<void>(indexStart);
static_cast<void>(indexEnd);
#endif
{
glDrawElements(GLenum(_primitive), count, GLenum(_indexType), reinterpret_cast<GLvoid*>(indexOffset));

Loading…
Cancel
Save