From 677195b0ac7e33b736e9ee0591e0fd62558d9413 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vladim=C3=ADr=20Vondru=C5=A1?= Date: Sun, 29 Jun 2014 09:16:30 +0200 Subject: [PATCH] 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. --- src/Magnum/MeshView.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/Magnum/MeshView.cpp b/src/Magnum/MeshView.cpp index 7df1064fb..d6dc21bf0 100644 --- a/src/Magnum/MeshView.cpp +++ b/src/Magnum/MeshView.cpp @@ -125,7 +125,8 @@ void MeshView::multiDrawImplementationDefault(std::initializer_list> meshes) { - for(MeshView& mesh: meshes) { + for(auto it = meshes.begin(); it != meshes.end(); ++it) { + MeshView& mesh = it->get(); #ifndef MAGNUM_TARGET_GLES2 mesh._original.get().drawInternal(mesh._count, mesh._baseVertex, mesh._instanceCount, mesh._indexOffset, mesh._indexStart, mesh._indexEnd); #else