mirror of
https://github.com/raysan5/raylib.git
synced 2026-03-10 11:05:40 +00:00
Check if locs is not null before try to access (#5622)
This commit is contained in:
2
src/external/rlsw.h
vendored
2
src/external/rlsw.h
vendored
@@ -3446,7 +3446,7 @@ static inline bool sw_is_texture_valid(uint32_t id)
|
||||
else if (id >= SW_MAX_TEXTURES) valid = false;
|
||||
else if (RLSW.loadedTextures[id].pixels == NULL) valid = false;
|
||||
|
||||
return true;
|
||||
return valid;
|
||||
}
|
||||
|
||||
static inline bool sw_is_texture_filter_valid(int filter)
|
||||
|
||||
Reference in New Issue
Block a user