From 94ff96699477fcbcd0dba949691cbf6641ebb485 Mon Sep 17 00:00:00 2001 From: aap Date: Thu, 21 Jan 2021 22:25:14 +0100 Subject: [PATCH] bletch --- src/rw/TexRead.cpp | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/rw/TexRead.cpp b/src/rw/TexRead.cpp index 4eb06ad1..632cec02 100644 --- a/src/rw/TexRead.cpp +++ b/src/rw/TexRead.cpp @@ -55,11 +55,8 @@ RwTextureGtaStreamRead(RwStream *stream) texNumLoaded++; } - if(tex == nil) - return nil; - #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()); #endif