mirror of
https://github.com/halpz/re3.git
synced 2025-07-26 00:32:41 +00:00
Merge remote-tracking branch 'origin/miami' into lcs
* origin/miami: fuck bletch fixed anisotropic filtering; updated librw fix
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"
|
||||
@ -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;
|
||||
|
Reference in New Issue
Block a user