Use emnu{} to simplify different of texture filtering

This commit is contained in:
raven02 2013-07-19 21:48:50 +08:00
parent 0cfd12170c
commit 4d53022121
2 changed files with 8 additions and 2 deletions

View File

@ -515,12 +515,12 @@ void TextureCache::UpdateSamplingParams(TexCacheEntry &entry, bool force) {
}
}
if ((g_Config.iTexFiltering == 3 || (g_Config.iTexFiltering == 4 && g_iNumVideos)) && !gstate.isColorTestEnabled()) {
if ((g_Config.iTexFiltering == linear || (g_Config.iTexFiltering == linearFMV && g_iNumVideos)) && !gstate.isColorTestEnabled()) {
magFilt |= 1;
minFilt |= 1;
}
if (g_Config.iTexFiltering == 2) {
if (g_Config.iTexFiltering == nearest) {
magFilt &= ~1;
minFilt &= ~1;
}

View File

@ -25,6 +25,12 @@
struct VirtualFramebuffer;
enum TextureFiltering {
nearest = 2,
linear = 3,
linearFMV = 4,
};
class TextureCache
{
public: