Skip to content

Commit 55694f8

Browse files
committed
AnisotropicFiltering: use the INI setting value
1 parent 3e0ed2b commit 55694f8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/hooks_graphics.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -352,7 +352,7 @@ class AnisotropicFiltering : public Hook
352352
{
353353
int Sampler = ctx.ebp;
354354

355-
Game::D3DDevice()->SetSamplerState(Sampler, D3DSAMP_MAXANISOTROPY, 16);
355+
Game::D3DDevice()->SetSamplerState(Sampler, D3DSAMP_MAXANISOTROPY, Settings::AnisotropicFiltering);
356356
}
357357

358358
inline static SafetyHookMid dest_hook2 = {};
@@ -364,7 +364,7 @@ class AnisotropicFiltering : public Hook
364364
{
365365
ctx.esi = D3DTEXF_ANISOTROPIC;
366366

367-
Game::D3DDevice()->SetSamplerState(Sampler, D3DSAMP_MAXANISOTROPY, 16);
367+
Game::D3DDevice()->SetSamplerState(Sampler, D3DSAMP_MAXANISOTROPY, Settings::AnisotropicFiltering);
368368
}
369369
}
370370

0 commit comments

Comments
 (0)