From b67e4dbb4c923f1aab688864781ce9a30756bb18 Mon Sep 17 00:00:00 2001 From: Shiqing Date: Sun, 17 Mar 2019 14:14:17 +0800 Subject: [PATCH] Fix #797 Sokol rendering is blurry --- src/system/sokol_gfx.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/system/sokol_gfx.c b/src/system/sokol_gfx.c index 3d90328..094139c 100644 --- a/src/system/sokol_gfx.c +++ b/src/system/sokol_gfx.c @@ -178,8 +178,8 @@ void sokol_gfx_init(int w, int h, int sx, int sy, bool integer_scale, bool portr .width = 2*sokol_gfx.fb_width, .height = 2*sokol_gfx.fb_height, .pixel_format = SG_PIXELFORMAT_RGBA8, - .min_filter = SG_FILTER_LINEAR, - .mag_filter = SG_FILTER_LINEAR, + .min_filter = SG_FILTER_NEAREST, + .mag_filter = SG_FILTER_NEAREST, .wrap_u = SG_WRAP_CLAMP_TO_EDGE, .wrap_v = SG_WRAP_CLAMP_TO_EDGE });