Textures: bilinear filtering instead of nearest
Thumbs get blown up in the detail view while loading and full-res photos get scaled to the screen, so sample them linearly. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
@@ -1117,6 +1117,11 @@ static vita2d_texture *req_build_texture(char *err, size_t errlen, int pooled)
|
|||||||
free(g_req_raw);
|
free(g_req_raw);
|
||||||
g_req_raw = NULL;
|
g_req_raw = NULL;
|
||||||
}
|
}
|
||||||
|
/* bilinear, not nearest: thumbs get blown up in the detail view and
|
||||||
|
* full-res photos get scaled down to the screen */
|
||||||
|
if (tex)
|
||||||
|
vita2d_texture_set_filters(tex, SCE_GXM_TEXTURE_FILTER_LINEAR,
|
||||||
|
SCE_GXM_TEXTURE_FILTER_LINEAR);
|
||||||
return tex;
|
return tex;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user