Fix T77586 EEVEE: UDIM image Texture doesn't Display properly

This commit is contained in:
Clément Foucault 2020-06-12 16:17:20 +02:00
parent 9f5cc128d9
commit 7e43bbb790
Notes: blender-bot 2023-07-10 10:12:37 +02:00
Referenced by issue #77586, UDIM image Texture doesn't Display properly
1 changed files with 5 additions and 0 deletions

View File

@ -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;