Browse Source

GCC 4.5 compatibility: no range-for loops.

Sadly this was in ES-only code, so it wasn't detected until I tried to
compile the project for NaCl.
Vladimír Vondruš 12 years ago
parent
commit
677195b0ac
  1. 3
      src/Magnum/MeshView.cpp

3
src/Magnum/MeshView.cpp

@ -125,7 +125,8 @@ void MeshView::multiDrawImplementationDefault(std::initializer_list<std::referen
#ifdef MAGNUM_TARGET_GLES #ifdef MAGNUM_TARGET_GLES
void MeshView::multiDrawImplementationFallback(std::initializer_list<std::reference_wrapper<MeshView>> meshes) { void MeshView::multiDrawImplementationFallback(std::initializer_list<std::reference_wrapper<MeshView>> meshes) {
for(MeshView& mesh: meshes) { for(auto it = meshes.begin(); it != meshes.end(); ++it) {
MeshView& mesh = it->get();
#ifndef MAGNUM_TARGET_GLES2 #ifndef MAGNUM_TARGET_GLES2
mesh._original.get().drawInternal(mesh._count, mesh._baseVertex, mesh._instanceCount, mesh._indexOffset, mesh._indexStart, mesh._indexEnd); mesh._original.get().drawInternal(mesh._count, mesh._baseVertex, mesh._instanceCount, mesh._indexOffset, mesh._indexStart, mesh._indexEnd);
#else #else

Loading…
Cancel
Save