mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-08-18 08:19:59 +00:00
Add a "force no texture filter" option, useful for some 2D games (like Mega Man 10) and people who like their pixelated graphics.
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@7431 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
parent
783c89f108
commit
15c51c37f3
7 changed files with 24 additions and 3 deletions
|
@ -1346,6 +1346,10 @@ void Renderer::SetSamplerState(int stage, int texindex)
|
|||
{
|
||||
gx_state.sampdc[stage].Filter = D3D11_FILTER_MIN_MAG_MIP_LINEAR;
|
||||
}
|
||||
else if (g_ActiveConfig.bForceNoFiltering)
|
||||
{
|
||||
gx_state.sampdc[stage].Filter = D3D11_FILTER_MIN_MAG_MIP_POINT;
|
||||
}
|
||||
else if (tm0.min_filter & 4) // linear min filter
|
||||
{
|
||||
if (tm0.mag_filter) // linear mag filter
|
||||
|
@ -1390,4 +1394,4 @@ void Renderer::SetInterlacingMode()
|
|||
// TODO
|
||||
}
|
||||
|
||||
} // namespace DX11
|
||||
} // namespace DX11
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue