mirror of
https://github.com/halpz/re3.git
synced 2025-07-24 23:19:44 +00:00
fixed anisotropic filtering; updated librw
This commit is contained in:
@ -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;
|
||||
|
Reference in New Issue
Block a user