This commit is contained in:
aap 2021-01-21 22:25:14 +01:00
parent e99589a3eb
commit 94ff966994

View file

@ -55,11 +55,8 @@ RwTextureGtaStreamRead(RwStream *stream)
texNumLoaded++; texNumLoaded++;
} }
if(tex == nil)
return nil;
#ifdef ANISOTROPIC_FILTERING #ifdef ANISOTROPIC_FILTERING
if(RpAnisotGetMaxSupportedMaxAnisotropy() > 1) // BUG? this was RpAnisotTextureGetMaxAnisotropy, but that doesn't make much sense if(tex && RpAnisotGetMaxSupportedMaxAnisotropy() > 1) // BUG? this was RpAnisotTextureGetMaxAnisotropy, but that doesn't make much sense
RpAnisotTextureSetMaxAnisotropy(tex, RpAnisotGetMaxSupportedMaxAnisotropy()); RpAnisotTextureSetMaxAnisotropy(tex, RpAnisotGetMaxSupportedMaxAnisotropy());
#endif #endif