This commit is contained in:
Ben Vanik
2015-06-26 07:56:06 -07:00
parent 55f6ab4f38
commit 2785124d1d
2 changed files with 4 additions and 3 deletions

View File

@@ -387,8 +387,9 @@ TextureCache::SamplerEntry* TextureCache::LookupOrInsertSampler(
return nullptr;
}
if (aniso)
if (aniso) {
glSamplerParameterf(entry->handle, GL_TEXTURE_MAX_ANISOTROPY_EXT, aniso);
}
// Add to map - map takes ownership.
auto entry_ptr = entry.get();