Fix T76755: texture paint on udims crash
Caused by rB5593efec01c2. Use first texture if we dont have an ImageUser (instead of multiview one). Same fix as in rB9ace7e243978 / T74925. Maniphest Tasks: T76755 Differential Revision: https://developer.blender.org/D7743
This commit is contained in:
parent
fe0036c586
commit
266caa1820
Notes:
blender-bot
2023-02-14 09:29:42 +01:00
Referenced by issue #76755, texture paint on udims crash
|
@ -905,7 +905,7 @@ GPUTexture *GPU_texture_from_blender(Image *ima, ImageUser *iuser, ImBuf *ibuf,
|
|||
bindcode = gpu_texture_create_tile_array(ima, ibuf_intern);
|
||||
}
|
||||
else if (textarget == GL_TEXTURE_1D_ARRAY) {
|
||||
bindcode = gpu_texture_create_tile_mapping(ima, iuser->multiview_eye);
|
||||
bindcode = gpu_texture_create_tile_mapping(ima, iuser ? iuser->multiview_eye : 0);
|
||||
}
|
||||
else {
|
||||
bindcode = gpu_texture_create_from_ibuf(ima, ibuf_intern, textarget);
|
||||
|
|
Loading…
Reference in New Issue