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; return nullptr;
} }
if (aniso) if (aniso) {
glSamplerParameterf(entry->handle, GL_TEXTURE_MAX_ANISOTROPY_EXT, aniso); glSamplerParameterf(entry->handle, GL_TEXTURE_MAX_ANISOTROPY_EXT, aniso);
}
// Add to map - map takes ownership. // Add to map - map takes ownership.
auto entry_ptr = entry.get(); auto entry_ptr = entry.get();

View File

@ -342,8 +342,8 @@ XEPACKEDUNION(xe_gpu_texture_fetch_t, {
uint32_t mag_filter : 2; uint32_t mag_filter : 2;
uint32_t min_filter : 2; uint32_t min_filter : 2;
uint32_t mip_filter : 2; uint32_t mip_filter : 2;
uint32_t aniso_filter : 3; // correct ? uint32_t aniso_filter : 3;
uint32_t arbitrary_filter : 3; // correct ? uint32_t unk3_2 : 3;
uint32_t border : 1; uint32_t border : 1;
uint32_t unk4_0 : 2; // dword_4 uint32_t unk4_0 : 2; // dword_4
uint32_t mip_min_level : 4; uint32_t mip_min_level : 4;