diff options
author | Clément Foucault <foucault.clem@gmail.com> | 2020-06-12 17:17:20 +0300 |
---|---|---|
committer | Clément Foucault <foucault.clem@gmail.com> | 2020-06-12 17:17:37 +0300 |
commit | 7e43bbb790d534eb0f7885e7cc793b12e7681d3f (patch) | |
tree | 821ee3d56fd9711f16169fd8747f0c6c2aedd84a | |
parent | 9f5cc128d9551a84bcceebdf005988f9eb095a36 (diff) |
Fix T77586 EEVEE: UDIM image Texture doesn't Display properly
-rw-r--r-- | source/blender/gpu/intern/gpu_draw.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/source/blender/gpu/intern/gpu_draw.c b/source/blender/gpu/intern/gpu_draw.c index 1c346217e9f..b03b0fc0b1e 100644 --- a/source/blender/gpu/intern/gpu_draw.c +++ b/source/blender/gpu/intern/gpu_draw.c @@ -912,6 +912,11 @@ GPUTexture *GPU_texture_from_blender(Image *ima, ImageUser *iuser, ImBuf *ibuf, GPU_texture_orig_size_set(*tex, ibuf_intern->x, ibuf_intern->y); + if (textarget == GL_TEXTURE_1D_ARRAY) { + /* Special for tile mapping. */ + GPU_texture_mipmap_mode(*tex, false, false); + } + return *tex; #endif return NULL; |