diff options
author | aap <aap@papnet.eu> | 2021-01-21 22:30:20 +0100 |
---|---|---|
committer | aap <aap@papnet.eu> | 2021-01-21 22:30:20 +0100 |
commit | c67273e92a60e50d67d8146f6a150a5b39a2a641 (patch) | |
tree | 062bb3b8d9b2ba99e477748aeaf2a1e19c891da0 /src/rw/TexRead.cpp | |
parent | Merge pull request #968 from withmorten/cw (diff) | |
download | re3-c67273e92a60e50d67d8146f6a150a5b39a2a641.tar re3-c67273e92a60e50d67d8146f6a150a5b39a2a641.tar.gz re3-c67273e92a60e50d67d8146f6a150a5b39a2a641.tar.bz2 re3-c67273e92a60e50d67d8146f6a150a5b39a2a641.tar.lz re3-c67273e92a60e50d67d8146f6a150a5b39a2a641.tar.xz re3-c67273e92a60e50d67d8146f6a150a5b39a2a641.tar.zst re3-c67273e92a60e50d67d8146f6a150a5b39a2a641.zip |
Diffstat (limited to 'src/rw/TexRead.cpp')
-rw-r--r-- | src/rw/TexRead.cpp | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/rw/TexRead.cpp b/src/rw/TexRead.cpp index d0addcca..c009af96 100644 --- a/src/rw/TexRead.cpp +++ b/src/rw/TexRead.cpp @@ -2,6 +2,9 @@ #pragma warning( disable : 4005) #pragma warning( pop ) #include "common.h" +#ifdef ANISOTROPIC_FILTERING +#include "rpanisot.h" +#endif #include "crossplatform.h" #include "platform.h" @@ -48,6 +51,12 @@ RwTextureGtaStreamRead(RwStream *stream) texLoadTime = (texNumLoaded * texLoadTime + (float)CTimer::GetCurrentTimeInCycles() / (float)CTimer::GetCyclesPerMillisecond() - preloadTime) / (float)(texNumLoaded+1); texNumLoaded++; } + +#ifdef ANISOTROPIC_FILTERING + if(tex && RpAnisotGetMaxSupportedMaxAnisotropy() > 1) // BUG? this was RpAnisotTextureGetMaxAnisotropy, but that doesn't make much sense + RpAnisotTextureSetMaxAnisotropy(tex, RpAnisotGetMaxSupportedMaxAnisotropy()); +#endif + return tex; } |