Browse Source

Sampler: remove old ES-specific workaround.

It caused Sampler::maxAnisotropy() to return 0.0f on all ES systems. And
I thought this was some driver issue.
pull/51/head
Vladimír Vondruš 13 years ago
parent
commit
fac8f7233c
  1. 3
      src/Sampler.cpp

3
src/Sampler.cpp

@ -52,12 +52,9 @@ Float Sampler::maxAnisotropy() {
GLfloat& value = Context::current()->state().texture->maxAnisotropy;
/** @todo Re-enable when extension header is available */
#ifndef MAGNUM_TARGET_GLES
/* Get the value, if not already cached */
if(value == 0.0f)
glGetFloatv(GL_MAX_TEXTURE_MAX_ANISOTROPY_EXT, &value);
#endif
return value;
}

Loading…
Cancel
Save