mirror of
https://git.eden-emu.dev/eden-emu/eden.git
synced 2025-10-14 16:57:52 +00:00
Use core extensions when available to set max anisotropic filtering level
This commit is contained in:
parent
32412d2a33
commit
2cd792b3cf
1 changed files with 7 additions and 2 deletions
|
@ -787,8 +787,13 @@ void RasterizerOpenGL::SamplerInfo::SyncWithConfig(const Tegra::Texture::FullTex
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (info.tic.use_header_opt_control == 0) {
|
if (info.tic.use_header_opt_control == 0) {
|
||||||
|
if (GLAD_GL_ARB_texture_filter_anisotropic) {
|
||||||
|
glSamplerParameterf(s, GL_TEXTURE_MAX_ANISOTROPY,
|
||||||
|
static_cast<float>(1 << info.tic.max_anisotropy.Value()));
|
||||||
|
} else if (GLAD_GL_EXT_texture_filter_anisotropic) {
|
||||||
glSamplerParameterf(s, GL_TEXTURE_MAX_ANISOTROPY_EXT,
|
glSamplerParameterf(s, GL_TEXTURE_MAX_ANISOTROPY_EXT,
|
||||||
static_cast<float>(1 << info.tic.max_anisotropy.Value()));
|
static_cast<float>(1 << info.tic.max_anisotropy.Value()));
|
||||||
|
}
|
||||||
glSamplerParameterf(s, GL_TEXTURE_MIN_LOD,
|
glSamplerParameterf(s, GL_TEXTURE_MIN_LOD,
|
||||||
static_cast<float>(info.tic.res_min_mip_level.Value()));
|
static_cast<float>(info.tic.res_min_mip_level.Value()));
|
||||||
glSamplerParameterf(s, GL_TEXTURE_MAX_LOD,
|
glSamplerParameterf(s, GL_TEXTURE_MAX_LOD,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue