Fix #797 Sokol rendering is blurry

This commit is contained in:
Shiqing 2019-03-17 14:14:17 +08:00
parent b09049ee45
commit b67e4dbb4c
1 changed files with 2 additions and 2 deletions

View File

@ -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, .width = 2*sokol_gfx.fb_width,
.height = 2*sokol_gfx.fb_height, .height = 2*sokol_gfx.fb_height,
.pixel_format = SG_PIXELFORMAT_RGBA8, .pixel_format = SG_PIXELFORMAT_RGBA8,
.min_filter = SG_FILTER_LINEAR, .min_filter = SG_FILTER_NEAREST,
.mag_filter = SG_FILTER_LINEAR, .mag_filter = SG_FILTER_NEAREST,
.wrap_u = SG_WRAP_CLAMP_TO_EDGE, .wrap_u = SG_WRAP_CLAMP_TO_EDGE,
.wrap_v = SG_WRAP_CLAMP_TO_EDGE .wrap_v = SG_WRAP_CLAMP_TO_EDGE
}); });