diff options
author | Clément Foucault <foucault.clem@gmail.com> | 2022-05-07 20:11:34 +0300 |
---|---|---|
committer | Clément Foucault <foucault.clem@gmail.com> | 2022-05-07 20:11:34 +0300 |
commit | 78e7b20c0f8dd2e76148f351ef1104375a4a1c94 (patch) | |
tree | 9fc8e781d65c0612d719f3ba383d7dd0f3ef15e1 /source | |
parent | 90663acfd586e9c3dbc769bc93a352f6bb2473bc (diff) |
Fix T96683: Mipmaps are inaccurate for UDIM textures
For some reasons the mipmap count was not set to max during creation.
Probably it was mistaken with the UDIM tilemap texture which is only
1D and has only one mipmap.
Diffstat (limited to 'source')
-rw-r--r-- | source/blender/imbuf/intern/util_gpu.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/imbuf/intern/util_gpu.c b/source/blender/imbuf/intern/util_gpu.c index 5abbc84b0ea..8da9eb9ccf7 100644 --- a/source/blender/imbuf/intern/util_gpu.c +++ b/source/blender/imbuf/intern/util_gpu.c @@ -154,7 +154,7 @@ GPUTexture *IMB_touch_gpu_texture( GPUTexture *tex; if (layers > 0) { - tex = GPU_texture_create_2d_array(name, w, h, layers, 1, tex_format, NULL); + tex = GPU_texture_create_2d_array(name, w, h, layers, 9999, tex_format, NULL); } else { tex = GPU_texture_create_2d(name, w, h, 9999, tex_format, NULL); |