Fix T45715: Blender crashes when creating Environment Map textures in Multi-View mode
This commit is contained in:
parent
58133d4ab2
commit
e96e0ddbee
Notes:
blender-bot
2023-02-14 10:21:10 +01:00
Referenced by issue #45715, Blender crashes when creating Environment Map textures in Multi-View mode
|
@ -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));
|
||||
|
||||
|
|
Loading…
Reference in New Issue