Skip to content

Commit

Permalink
Use emnu{} to simplify different of texture filtering
Browse files Browse the repository at this point in the history
  • Loading branch information
raven02 committed Jul 19, 2013
1 parent 0cfd121 commit 4d53022
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
4 changes: 2 additions & 2 deletions GPU/GLES/TextureCache.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down
6 changes: 6 additions & 0 deletions GPU/GLES/TextureCache.h
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,12 @@

struct VirtualFramebuffer;

enum TextureFiltering {
nearest = 2,
linear = 3,
linearFMV = 4,
};

class TextureCache
{
public:
Expand Down

0 comments on commit 4d53022

Please sign in to comment.