Subversion Repository Public Repository

Divide-Framework

This repository has no backups
This repository's network speed is throttled to 100KB/sec

Diff Revisions 221 vs 223 for /trunk/Source Code/Hardware/Video/OpenGL/Textures/glSamplerOject.cpp

Diff revisions: vs.
  @@ -45,13 +45,9 @@
45 45 GLCheck(glSamplerParameteri(_samplerID, GL_TEXTURE_COMPARE_FUNC, glCompareFuncTable[descriptor._cmpFunc]));
46 46 }
47 47
48 - if (descriptor.anisotrophyLevel() > 1 && descriptor.generateMipMaps()) {
49 - if(!glewIsSupported("GL_EXT_texture_filter_anisotropic")){
50 - ERROR_FN(Locale::get("ERROR_NO_ANISO_SUPPORT"));
51 - }else{
52 - U8 anisoLevel = std::min<I32>((I32)descriptor.anisotrophyLevel(), ParamHandler::getInstance().getParam<U8>("rendering.anisotropicFilteringLevel"));
53 - GLCheck(glSamplerParameterf(_samplerID, GL_TEXTURE_MAX_ANISOTROPY_EXT, anisoLevel));
54 - }
48 + if (descriptor.anisotropyLevel() > 1 && descriptor.generateMipMaps() && GL_API::_anisotropySupported) {
49 + U8 anisoLevel = std::min<I32>((I32)descriptor.anisotropyLevel(), ParamHandler::getInstance().getParam<U8>("rendering.anisotropicFilteringLevel"));
50 + GLCheck(glSamplerParameterf(_samplerID, GL_TEXTURE_MAX_ANISOTROPY_EXT, anisoLevel));
55 51 }
56 52 //GLCheck(glSamplerParameterfv(_samplerID, GL_TEXTURE_BORDER_COLOR, &glm::vec4(0.0f)[0]));
57 53 return true;