From b99b43fdf21fa9ab30680bd5a9bd8455d0ee78f3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vladim=C3=ADr=20Vondru=C5=A1?= Date: Tue, 25 Aug 2015 22:30:10 +0200 Subject: [PATCH] MSVC 2015 compatibility: the dreaded range-based-for parsing bug. --- src/Magnum/AbstractTexture.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/Magnum/AbstractTexture.cpp b/src/Magnum/AbstractTexture.cpp index 3ce8a98c8..f8553e844 100644 --- a/src/Magnum/AbstractTexture.cpp +++ b/src/Magnum/AbstractTexture.cpp @@ -219,7 +219,10 @@ AbstractTexture::~AbstractTexture() { /* Remove all bindings */ for(auto& binding: Context::current()->state().texture->bindings) + { + /* MSVC 2015 needs the parentheses around */ if(binding.second == _id) binding = {}; + } glDeleteTextures(1, &_id); }