From 66bb4277622c465a88c81b907dd5e9f84d307ebb Mon Sep 17 00:00:00 2001 From: Mike Blumenkrantz Date: Tue, 26 Jan 2021 07:39:10 -0500 Subject: [PATCH] st/bitmap: use GL_CLAMP_TO_EDGE for bitmap samplers MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit we aren't using border colors here, so this should be fine (and more compatible) Reviewed-by: Erik Faye-Lund Drive-by: Alyssa Rosenzweig Reviewed-by: Marek Olšák Reviewed-by: Eric Anholt Part-of: --- src/mesa/state_tracker/st_cb_bitmap.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/mesa/state_tracker/st_cb_bitmap.c b/src/mesa/state_tracker/st_cb_bitmap.c index 32fcd8a49df..63d8ac8dde2 100644 --- a/src/mesa/state_tracker/st_cb_bitmap.c +++ b/src/mesa/state_tracker/st_cb_bitmap.c @@ -559,9 +559,9 @@ init_bitmap_state(struct st_context *st) /* init sampler state once */ memset(&st->bitmap.sampler, 0, sizeof(st->bitmap.sampler)); - st->bitmap.sampler.wrap_s = PIPE_TEX_WRAP_CLAMP; - st->bitmap.sampler.wrap_t = PIPE_TEX_WRAP_CLAMP; - st->bitmap.sampler.wrap_r = PIPE_TEX_WRAP_CLAMP; + st->bitmap.sampler.wrap_s = PIPE_TEX_WRAP_CLAMP_TO_EDGE; + st->bitmap.sampler.wrap_t = PIPE_TEX_WRAP_CLAMP_TO_EDGE; + st->bitmap.sampler.wrap_r = PIPE_TEX_WRAP_CLAMP_TO_EDGE; st->bitmap.sampler.min_img_filter = PIPE_TEX_FILTER_NEAREST; st->bitmap.sampler.min_mip_filter = PIPE_TEX_MIPFILTER_NONE; st->bitmap.sampler.mag_img_filter = PIPE_TEX_FILTER_NEAREST;