mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-02-13 07:49:19 +01:00
SamplerCache: Check for bSupportsLodBiasInSampler instead of IsGLES
This commit is contained in:
parent
08396c56e5
commit
91cdeb5aa6
@ -97,8 +97,10 @@ void SamplerCache::SetParameters(GLuint sampler_id, const SamplerState& params)
|
|||||||
glSamplerParameterf(sampler_id, GL_TEXTURE_MIN_LOD, params.tm1.min_lod / 16.f);
|
glSamplerParameterf(sampler_id, GL_TEXTURE_MIN_LOD, params.tm1.min_lod / 16.f);
|
||||||
glSamplerParameterf(sampler_id, GL_TEXTURE_MAX_LOD, params.tm1.max_lod / 16.f);
|
glSamplerParameterf(sampler_id, GL_TEXTURE_MAX_LOD, params.tm1.max_lod / 16.f);
|
||||||
|
|
||||||
if (!static_cast<Renderer*>(g_renderer.get())->IsGLES())
|
if (g_ActiveConfig.backend_info.bSupportsLodBiasInSampler)
|
||||||
|
{
|
||||||
glSamplerParameterf(sampler_id, GL_TEXTURE_LOD_BIAS, params.tm0.lod_bias / 256.f);
|
glSamplerParameterf(sampler_id, GL_TEXTURE_LOD_BIAS, params.tm0.lod_bias / 256.f);
|
||||||
|
}
|
||||||
|
|
||||||
if (params.tm0.anisotropic_filtering && g_ogl_config.bSupportsAniso)
|
if (params.tm0.anisotropic_filtering && g_ogl_config.bSupportsAniso)
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user