Fix T45715: Blender crashes when creating Environment Map textures in Multi-View mode

This commit is contained in:
Dalai Felinto
2015-08-07 15:46:18 -03:00
parent 58133d4ab2
commit e96e0ddbee

View File

@@ -498,7 +498,8 @@ static void render_envmap(Render *re, EnvMap *env)
float *alpha;
float *rect;
rect = RE_RenderLayerGetPass(rl, SCE_PASS_COMBINED, re->viewname);
/* envmap is rendered independently of multiview */
rect = RE_RenderLayerGetPass(rl, SCE_PASS_COMBINED, "");
ibuf = IMB_allocImBuf(envre->rectx, envre->recty, 24, IB_rect | IB_rectfloat);
memcpy(ibuf->rect_float, rect, ibuf->channels * ibuf->x * ibuf->y * sizeof(float));