summaryrefslogtreecommitdiffstats
path: root/src/rw
diff options
context:
space:
mode:
authoraap <aap@papnet.eu>2021-01-21 22:17:35 +0100
committeraap <aap@papnet.eu>2021-01-21 22:17:35 +0100
commite99589a3ebf32b86046429c025fb0d3db6e44a68 (patch)
tree13390a57f5cb3a0e0445387e4bd47bcd3e6bcb7a /src/rw
parentfix (diff)
downloadre3-e99589a3ebf32b86046429c025fb0d3db6e44a68.tar
re3-e99589a3ebf32b86046429c025fb0d3db6e44a68.tar.gz
re3-e99589a3ebf32b86046429c025fb0d3db6e44a68.tar.bz2
re3-e99589a3ebf32b86046429c025fb0d3db6e44a68.tar.lz
re3-e99589a3ebf32b86046429c025fb0d3db6e44a68.tar.xz
re3-e99589a3ebf32b86046429c025fb0d3db6e44a68.tar.zst
re3-e99589a3ebf32b86046429c025fb0d3db6e44a68.zip
Diffstat (limited to 'src/rw')
-rw-r--r--src/rw/TexRead.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/rw/TexRead.cpp b/src/rw/TexRead.cpp
index c5252f77..4eb06ad1 100644
--- a/src/rw/TexRead.cpp
+++ b/src/rw/TexRead.cpp
@@ -5,7 +5,7 @@
#define WITHD3D
#endif
#include "common.h"
-#ifndef LIBRW
+#ifdef ANISOTROPIC_FILTERING
#include "rpanisot.h"
#endif
#include "crossplatform.h"
@@ -58,9 +58,9 @@ RwTextureGtaStreamRead(RwStream *stream)
if(tex == nil)
return nil;
-#ifndef LIBRW
- if(RpAnisotTextureGetMaxAnisotropy(tex) > 1)
- RpAnisotTextureSetMaxAnisotropy(tex, RpAnisotTextureGetMaxAnisotropy(tex));
+#ifdef ANISOTROPIC_FILTERING
+ if(RpAnisotGetMaxSupportedMaxAnisotropy() > 1) // BUG? this was RpAnisotTextureGetMaxAnisotropy, but that doesn't make much sense
+ RpAnisotTextureSetMaxAnisotropy(tex, RpAnisotGetMaxSupportedMaxAnisotropy());
#endif
return tex;