Browse Source

Fix building on GLES2/WebGL.

pull/142/head
Vladimír Vondruš 10 years ago
parent
commit
70f7694d5a
  1. 2
      src/Magnum/AbstractTexture.cpp

2
src/Magnum/AbstractTexture.cpp

@ -240,11 +240,13 @@ AbstractTexture::~AbstractTexture() {
if(binding.second == _id) binding = {};
}
#if !defined(MAGNUM_TARGET_GLES2) && !defined(MAGNUM_TARGET_WEBGL)
/* Remove all image bindings */
for(auto& binding: Context::current().state().texture->imageBindings) {
/* MSVC 2015 needs the parentheses around */
if(std::get<0>(binding) == _id) binding = {};
}
#endif
glDeleteTextures(1, &_id);
}

Loading…
Cancel
Save