summaryrefslogtreecommitdiffstats
path: root/src/rw
diff options
context:
space:
mode:
authorSergeanur <s.anureev@yandex.ua>2021-01-22 00:58:38 +0100
committerSergeanur <s.anureev@yandex.ua>2021-01-22 00:58:38 +0100
commit06d8860d42028d7fa3581e90ecc906ddf7c3f2da (patch)
tree18131f582cc9668f698e5b9599febc0b8d81cb88 /src/rw
parenthigher wheel LOD dist (diff)
parentfuck (diff)
downloadre3-06d8860d42028d7fa3581e90ecc906ddf7c3f2da.tar
re3-06d8860d42028d7fa3581e90ecc906ddf7c3f2da.tar.gz
re3-06d8860d42028d7fa3581e90ecc906ddf7c3f2da.tar.bz2
re3-06d8860d42028d7fa3581e90ecc906ddf7c3f2da.tar.lz
re3-06d8860d42028d7fa3581e90ecc906ddf7c3f2da.tar.xz
re3-06d8860d42028d7fa3581e90ecc906ddf7c3f2da.tar.zst
re3-06d8860d42028d7fa3581e90ecc906ddf7c3f2da.zip
Diffstat (limited to 'src/rw')
-rw-r--r--src/rw/TexRead.cpp11
1 files changed, 4 insertions, 7 deletions
diff --git a/src/rw/TexRead.cpp b/src/rw/TexRead.cpp
index c5252f77..632cec02 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"
@@ -55,12 +55,9 @@ RwTextureGtaStreamRead(RwStream *stream)
texNumLoaded++;
}
- if(tex == nil)
- return nil;
-
-#ifndef LIBRW
- if(RpAnisotTextureGetMaxAnisotropy(tex) > 1)
- RpAnisotTextureSetMaxAnisotropy(tex, RpAnisotTextureGetMaxAnisotropy(tex));
+#ifdef ANISOTROPIC_FILTERING
+ if(tex && RpAnisotGetMaxSupportedMaxAnisotropy() > 1) // BUG? this was RpAnisotTextureGetMaxAnisotropy, but that doesn't make much sense
+ RpAnisotTextureSetMaxAnisotropy(tex, RpAnisotGetMaxSupportedMaxAnisotropy());
#endif
return tex;