fixed anisotropic filtering; updated librw

This commit is contained in:
aap
2021-01-21 22:17:35 +01:00
parent 50cde66067
commit e99589a3eb
5 changed files with 17 additions and 7 deletions

View File

@ -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;