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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user