mirror of
https://github.com/libretro/ppsspp.git
synced 2025-01-22 08:44:51 +00:00
Use emnu{} to simplify different of texture filtering
This commit is contained in:
parent
0cfd12170c
commit
4d53022121
@ -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;
|
||||
}
|
||||
|
@ -25,6 +25,12 @@
|
||||
|
||||
struct VirtualFramebuffer;
|
||||
|
||||
enum TextureFiltering {
|
||||
nearest = 2,
|
||||
linear = 3,
|
||||
linearFMV = 4,
|
||||
};
|
||||
|
||||
class TextureCache
|
||||
{
|
||||
public:
|
||||
|
Loading…
x
Reference in New Issue
Block a user