From 083174e68ce66b1b60ba00ac22b1ec9af05a3ca9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dominik=20Madar=C3=A1sz?= Date: Wed, 14 Feb 2024 11:52:50 +0100 Subject: [PATCH] model: use linear filtering by default --- engine/joint/v4k.h | 2 +- engine/split/v4k_render.c | 2 +- engine/v4k.c | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/engine/joint/v4k.h b/engine/joint/v4k.h index 2414563..a96b56b 100644 --- a/engine/joint/v4k.h +++ b/engine/joint/v4k.h @@ -373225,7 +373225,7 @@ bool model_load_textures(iqm_t *q, const struct iqmheader *hdr, model_t *model) if( reused ) continue; // decode texture+material - int flags = TEXTURE_MIPMAPS|TEXTURE_REPEAT; // LINEAR, NEAREST + int flags = TEXTURE_MIPMAPS|TEXTURE_REPEAT|TEXTURE_LINEAR; // LINEAR, NEAREST int invalid = texture_checker().id; #if 1 diff --git a/engine/split/v4k_render.c b/engine/split/v4k_render.c index 7417912..b585779 100644 --- a/engine/split/v4k_render.c +++ b/engine/split/v4k_render.c @@ -3211,7 +3211,7 @@ bool model_load_textures(iqm_t *q, const struct iqmheader *hdr, model_t *model) if( reused ) continue; // decode texture+material - int flags = TEXTURE_MIPMAPS|TEXTURE_REPEAT; // LINEAR, NEAREST + int flags = TEXTURE_MIPMAPS|TEXTURE_REPEAT|TEXTURE_LINEAR; // LINEAR, NEAREST int invalid = texture_checker().id; #if 1 diff --git a/engine/v4k.c b/engine/v4k.c index 101485f..aa8a5ff 100644 --- a/engine/v4k.c +++ b/engine/v4k.c @@ -20367,7 +20367,7 @@ bool model_load_textures(iqm_t *q, const struct iqmheader *hdr, model_t *model) if( reused ) continue; // decode texture+material - int flags = TEXTURE_MIPMAPS|TEXTURE_REPEAT; // LINEAR, NEAREST + int flags = TEXTURE_MIPMAPS|TEXTURE_REPEAT|TEXTURE_LINEAR; // LINEAR, NEAREST int invalid = texture_checker().id; #if 1