Browse Source

MSVC 2015 compatibility: the dreaded range-based-for parsing bug.

pull/107/head
Vladimír Vondruš 11 years ago
parent
commit
b99b43fdf2
  1. 3
      src/Magnum/AbstractTexture.cpp

3
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);
}

Loading…
Cancel
Save