Browse Source

Extension header for OpenGL ES is available now.

ES3 will need to be handled differently, not bothering with that for now.
pull/7/head
Vladimír Vondruš 13 years ago
parent
commit
ff06d88a24
  1. 5
      src/AbstractTexture.h

5
src/AbstractTexture.h

@ -1108,12 +1108,7 @@ class MAGNUM_EXPORT AbstractTexture {
* @requires_es_extension %Extension @es_extension2{EXT,texture_filter_anisotropic,texture_filter_anisotropic}
*/
inline AbstractTexture* setMaxAnisotropy(GLfloat anisotropy) {
/** @todo Remove `ifndef` when extension header is available */
#ifndef MAGNUM_TARGET_GLES
(this->*parameterfImplementation)(GL_TEXTURE_MAX_ANISOTROPY_EXT, anisotropy);
#else
static_cast<void>(anisotropy);
#endif
return this;
}

Loading…
Cancel
Save