From 94e1fc1c6d50d4b64e935d4b278114c5ec233672 Mon Sep 17 00:00:00 2001 From: Brad Grantham Date: Fri, 20 Jul 2018 20:28:16 -0700 Subject: [PATCH] fix #23 by added fudge to texture sample Another case sampling the wrong location fixed by adding vec2(.01, .01)... --- interface.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/interface.cpp b/interface.cpp index 544f4de..1629067 100644 --- a/interface.cpp +++ b/interface.cpp @@ -356,7 +356,7 @@ static const char *hirescolor_fragment_shader = "\n\ } else { \n\ uint even = (x % 2 == 1) ? left : pixel; \n\ uint odd = (x % 2 == 1) ? pixel : right; \n\ - uint palette = uint(texture(hires_texture, vec2((x / 7) * 8 + 7, raster_coords.y) * hires_texture_coord_scale).x); \n\ + uint palette = uint(texture(hires_texture, vec2((x / 7) * 8 + 7 + .01f, raster_coords.y + .01f) * hires_texture_coord_scale).x); \n\ \n\ if(palette == 0u) { \n\ if((even == 0u) && (odd == 255u)) { \n\