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:
authorPhilipp Oeser <info@graphics-engineer.com>2020-05-15 13:32:54 +0300
committerPhilipp Oeser <info@graphics-engineer.com>2020-05-15 16:56:35 +0300
commit266caa18209f777e7ddaf50c0cddeae9a320ae67 (patch)
tree3804b11aa9fb99e8fa573c3c302ca996fa17fad6 /source/blender/gpu
parentfe0036c586d334a17a0b6bc008790749f58273be (diff)
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
Diffstat (limited to 'source/blender/gpu')
-rw-r--r--source/blender/gpu/intern/gpu_draw.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/gpu/intern/gpu_draw.c b/source/blender/gpu/intern/gpu_draw.c
index 350c616e359..5f3822c794e 100644
--- a/source/blender/gpu/intern/gpu_draw.c
+++ b/source/blender/gpu/intern/gpu_draw.c
@@ -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);