Fix #797 Sokol rendering is blurry
This commit is contained in:
parent
b09049ee45
commit
b67e4dbb4c
|
@ -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
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in New Issue