mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-25 02:10:11 +01:00
st/bitmap: use GL_CLAMP_TO_EDGE for bitmap samplers
we aren't using border colors here, so this should be fine (and more compatible) Reviewed-by: Erik Faye-Lund <erik.faye-lund@collabora.com> Drive-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com> Reviewed-by: Marek Olšák <marek.olsak@amd.com> Reviewed-by: Eric Anholt <eric@anholt.net> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/8714>
This commit is contained in:
parent
b06609e903
commit
66bb427762
1 changed files with 3 additions and 3 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue