Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorClément Foucault <foucault.clem@gmail.com>2020-06-12 17:17:20 +0300
committerClément Foucault <foucault.clem@gmail.com>2020-06-12 17:17:37 +0300
commit7e43bbb790d534eb0f7885e7cc793b12e7681d3f (patch)
tree821ee3d56fd9711f16169fd8747f0c6c2aedd84a /source/blender/gpu
parent9f5cc128d9551a84bcceebdf005988f9eb095a36 (diff)
Fix T77586 EEVEE: UDIM image Texture doesn't Display properly
Diffstat (limited to 'source/blender/gpu')
-rw-r--r--source/blender/gpu/intern/gpu_draw.c5
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;